Constructors

Properties

config: SessionOptions = {}
jar: Cookies = ...
sessionId: `${string}-${string}-${string}-${string}-${string}` = ...

Methods

  • The 'close' method closes the current session.

    Returns Promise<any>

    The response from the 'destroySession' function.

  • Returns Promise<Serialized[]>

  • The 'DELETE' method performs a DELETE request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the DELETE request to.

    • options: DeleteRequestOptions = {}

      The options for the DELETE request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • Parameters

    • id: string

    Returns Promise<void>

  • The 'GET' method performs a GET request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the GET request to.

    • options: GetRequestOptions = {}

      The options for the GET request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • Returns OutgoingHttpHeaders

  • The 'HEAD' method performs a HEAD request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the HEAD request to.

    • options: HeadRequestOptions = {}

      The options for the HEAD request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • The 'OPTIONS' method performs an OPTIONS request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the OPTIONS request to.

    • options: OptionsRequestOptions = {}

      The options for the OPTIONS request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • The 'PATCH' method performs a PATCH request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the PATCH request to.

    • options: PatchRequestOptions = {}

      The options for the PATCH request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • The 'POST' method performs a POST request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the POST request to.

    • options: PostRequestOptions = {}

      The options for the POST request.

    Returns Promise<Response>

    The response from the 'execute' method.

  • The 'PUT' method performs a PUT request to the provided URL with the provided options.

    Parameters

    • url: string

      The URL to perform the PUT request to.

    • options: PutRequestOptions = {}

      The options for the PUT request.

    Returns Promise<Response>

    The response from the 'execute' method.