fetch_client 1.0.1
fetch_client: ^1.0.1 copied to clipboard
Client for http package based on Fetch API, enables streamed requests on web and more.
Fetch Client #
This package provides package:http client based on Fetch API.
It's a drop-in solution for extensions with Manifest V3.
Features #
- Cancel requests.
- Support data streaming:
- Get response as
Stream
. - Optionally send
Stream
as request body.
- Get response as
- Get access to redirect URL and status.
- Support non-
200
responses (fetch will only fail on network error). - Simulate redirects responses via probe request and artificial
location
header.