fetch_client library
Fetch based HTTP client. Exports necessary fetch request options and client with response.
Classes
- FetchClient
- HTTP client based on Fetch API. It does support streaming and can handle non 200 responses.
-
FetchRequest<
T extends BaseRequest> - Wraps request to provide fetch options overrides.
- FetchResponse
-
StreamedResponse
with additional capability to cancel request and access to final (after redirects) request url.
Enums
- RedirectPolicy
- How FetchClient should handle redirects.
- RequestCache
-
The cache read-only property of the
Request
interface contains the cache mode of the request. It controls how the request will interact with the browser's HTTP cache. - RequestCredentials
- Controls what browsers do with credentials (cookies, HTTP authentication entries, and TLS client certificates).
- RequestMode
- Mode is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
- RequestReferrerPolicy
- Specifies the referrer policy to use for the request.