The type of data that will be sent in the request
The type of data that will be returned from the request
Configuration options for the fetch factory
Interface representing a fetch factory configuration.
IFetchFactory
The function used to perform the HTTP request.
Optional
format?: false | "text" | "json" | "blob" | "stream"Optional response format. If false, raw response is returned.
Optional
headers?: Record<string, string>Optional HTTP request headers.
The HTTP request method.
A function that makes HTTP requests with the configured options The returned function accepts:
Creates a reusable HTTP request function with predefined options.