Communicates with remote resources using JavaScript's standard Fetch API.

Hierarchy

  • FetchHttpClient

Implements

Constructors

Properties

Methods

Constructors

Properties

defaultHeaders: Headers = ...

Default HTTP headers to set for requests when not explicitly overridden.

Methods

  • Sends an HTTP request.

    Parameters

    • uri: URL

      The URI to send the message to.

    • method: HttpMethod

      The HTTP method to use.

    • Optional signal: AbortSignal

      Used to cancel the request.

    • Optional headers: HeadersInit

      The HTTP headers to set.

    • Optional body: BodyInit

      The body to send.

    Returns Promise<Response>

Generated using TypeDoc