UNPKG

@coolio/http

Version:
12 lines 657 B
import { HttpRequestHandler } from '../httpClient.types'; export interface FetchRequestHandlerOptions { defaultRequestOptions?: RequestInit; } /** * Creates a new {@link HttpRequestHandler} that uses [Fetch API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API} underneath. * Does not support *timeout* property. * Abort is possible only after headers were received. * @param fetchRequestHandlerOptions - default Fetch API options attached to all requests */ export declare const fetchRequestHandler: (fetchRequestHandlerOptions?: FetchRequestHandlerOptions) => HttpRequestHandler; //# sourceMappingURL=fetch.requestHandler.d.ts.map