Class HttpClient

Implements

Constructors

Properties

DefaultRequestHeaders: Record<string, string> = {}

Gets the headers which should be sent with each request.

OnRequestReceived?: ((request) => Promise<Request | Response>)

An operation used to modify a request prior to submission OR override the normal request process and return a response.

Type declaration

    • (request): Promise<Request | Response>
    • Parameters

      • request: Request

      Returns Promise<Request | Response>

Param: request

the original request

Returns

a modified request or a response

OnResponseResolved?: ((response) => void)

An operation to be performed just after a response is resolved from a request, but prior to the response being returned.

Type declaration

    • (response): void
    • Parameters

      • response: Response

      Returns void

fetchRef: Fetch = ...

Methods

Generated using TypeDoc