This package provides package:http client based on Fetch API.
It's a drop-in solution for extensions with Manifest V3.
- 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.