Type alias WebHttpClientOptions

WebHttpClientOptions: {
    fetch?: ((url: string, init?: RequestInit) => Promise<Response>);
    retriesCount?: number;
    transformRequestUrl?: TransformRequestUrl;
}

Type declaration

  • Optional fetch?: ((url: string, init?: RequestInit) => Promise<Response>)
      • (url: string, init?: RequestInit): Promise<Response>
      • Optional Fetch API implementation, could be useful for testing.

        Parameters

        • url: string
        • Optional init: RequestInit

        Returns Promise<Response>

  • Optional retriesCount?: number

    The number of retries that the client attempt to do on failure.

  • Optional transformRequestUrl?: TransformRequestUrl

    The transform request URL function, which could be useful in a browser environment when the host does not return the proper Access-Control-Allow-Origin header and CORS proxy is required to fulfill the request.

Generated using TypeDoc