-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
# Fetch API. | ||
# Fetch Client | ||
|
||
This package provides [package:http](https://pub.dev/packages/http) client based | ||
on [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API). | ||
|
||
It's a drop-in solution for extensions with | ||
[Manifest V3](https://developer.chrome.com/docs/extensions/mv3/intro/#introducing-manifest-v3). | ||
|
||
## Features | ||
|
||
* Cancel requests | ||
* Support data streaming (responses and optionally requests) | ||
* Get access to redirect URL and status | ||
* Support non-`200` responses | ||
* Cancel requests. | ||
* Support data streaming: | ||
* Get response as `Stream`. | ||
* Optionally send `Stream` as request body. | ||
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters