Uses fetch to send requests to a backend server.

This FetchBackend requires the support of the Fetch API which is available on all supported browsers and on Node.js v18 or later.

Implements

Constructors

Methods

Constructors

  • Parameters

    • fetchImpl: {
          (input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
          (input: string | Request | URL, init?: RequestInit): Promise<Response>;
      } = ...
        • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optionalinit: RequestInit

          Returns Promise<Response>

        • (input: string | Request | URL, init?: RequestInit): Promise<Response>
        • Parameters

          • input: string | Request | URL
          • Optionalinit: RequestInit

          Returns Promise<Response>

    Returns HttpFetchBackend

Methods