Class SeamHttpRequest<TResponse, TResponseKey>

Type Parameters

  • const TResponse
  • const TResponseKey extends keyof TResponse | undefined

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

[toStringTag]: string = 'SeamHttpRequest'

Accessors

  • get body(): unknown
  • Returns unknown

  • get method(): Method
  • Returns Method

  • get url(): URL
  • Returns URL

Methods

  • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

    Parameters

    • Optionalonfinally: null | (() => void)

      The callback to execute when the Promise is settled (fulfilled or rejected).

    Returns Promise<TResponseKey extends keyof TResponse
        ? TResponse[TResponseKey<TResponseKey>]
        : undefined>

    A Promise for the completion of the callback.