fetch_client
Client for http package based on Fetch API, enables streamed and cancelable requests on web and more.
1.2.1
78K downloads/mo
#1233 most downloaded on pub.dev
Zekfad/fetch_client
What this package is like to depend on
Last release 4 months ago
03 Apr 2026
Release timing varies
gaps range from 9 days to 10 months
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
16 releases · first in 2023
2 releases in the last 12 months
see the full history below
Release timeline
16 releases · Jan 2023 to Apr 2026Releases
latest 16-
1.2.103 Apr 2026Release notes
Open source →- Fix response stream subscription and request synchronization:
Indart2jsstream handler waited for an additional chunk after subscription was canceled (dart2wasmseems to be unaffected).
Release notes
Open source →- Fix response stream subscription and request synchronization:
In
dart2jsstream handler waited for an additional chunk after subscription was canceled (dart2wasmseems to be unaffected).
- Fix response stream subscription and request synchronization:
-
1.2.022 Oct 2025Release notes
Open source →Requires Dart 3.4
- Bumped
httpto 1.5.0. - Support request cancellation via
Abortablefromhttp.You are not required to add
abortTriggerto wrappingFetchRequestsince it will inherit it by default.
You can also just usehttp'sAbortableRequestdirectly if you don't need to customizefetchbehavior on a request basis. RequestCanceledExceptionhow implementsRequestAbortedException.FetchRequesthow also implementsAbortable.
Release notes
Open source →Requires Dart 3.4
- Bumped
httpto 1.5.0. - Support request cancellation via
Abortablefromhttp.You are not required to add
abortTriggerto wrappingFetchRequestsince it will inherit it by default. You can also just usehttp'sAbortableRequestdirectly if you don't need to customizefetchbehavior on a request basis. RequestCanceledExceptionhow implementsRequestAbortedException.FetchRequesthow also implementsAbortable.
- Bumped
-
1.1.425 Apr 2025Release notes
Open source →- Fix lint errors.
- Use
package:zekfad_lints/lib.yamlwhich aligns with core lints.
Release notes
Open source →- Fix lint errors.
- Use
package:zekfad_lints/lib.yamlwhich aligns with core lints.
-
1.1.328 Mar 2025Release notes
Open source →- Fix possible unhandled promise rejection if underlying data stream is errored.
- Update license years.
- Throw
RequestCanceledExceptionwith reason when using
FetchResponse.cancelor client is closed with request in-progress.Semantic is currently undefined and this is implementation specific
behavior.See http#1192 for more
info.
Release notes
Open source →-
Fix possible unhandled promise rejection if underlying data stream is errored.
-
Update license years.
-
Throw
RequestCanceledExceptionwith reason when usingFetchResponse.cancelor client is closed with request in-progress.Semantic is currently undefined and this is the implementation specific behavior.
See http#1192 for more info.
-
1.1.226 May 2024 -
1.1.104 May 2024Release notes
Open source →- Bumped
fetch_apito 2.1.0. - Create internal shim for non-JS environments: you can now import package
without conditional import and use enumerations in VM.
This makes it easier to useFetchClientin Flutter viakIsWeb.
Release notes
Open source →- Bumped
fetch_apito 2.1.0. - Create internal shim for non-JS environments: you can now import the package
without conditional import and use enumerations in a VM.
This makes it easier to use
FetchClientin Flutter viakIsWeb.
- Bumped
-
1.1.002 May 2024Release notes
Open source →Requires Dart 3.3
- Migrate to
fetch_api2.0.0.
This requires Dart 3.3, but makes package WASM ready. - Update
httpconstraint to^1.2.0. - BREAKING:
FetchResponseurlnow isUriinstead ofString. FetchResponsenow implementsBaseResponseWithUrl.- Fix unclosed requests after client is closed in-between fetch request.
- Fix
HEADrequest in FireFox. - Handle response length checks.
- Add
FetchRequestclass that wraps otherRequestto provide fetch options
overrides. - Removed
integrityfromFetchClientconstructor as it wasn't used, use
FetchRequest.integrityinstead.
Release notes
Open source →Requires Dart 3.3
- Migrate to
fetch_api2.0.0. This requires Dart 3.3, but makes the package WASM ready. - Update
httpconstraint to^1.2.0. - BREAKING:
FetchResponseurlnow isUriinstead ofString. FetchResponsenow implementsBaseResponseWithUrl.- Fix unclosed requests after client is closed in-between fetch request.
- Fix
HEADrequest in FireFox. - Handle response length checks.
- Add
FetchRequestclass that wraps otherRequestto provide fetch options overrides. - Removed
integrityfromFetchClientconstructor as it wasn't used, useFetchRequest.integrityinstead.
- Migrate to
-
1.1.0-wasm08 Feb 2024 pre-releaseNothing published for this version
-
1.0.201 Jul 2023 -
1.0.121 Jun 2023 -
1.0.023 Feb 2023 -
1.0.0-dev.513 Feb 2023 pre-releaseRelease notes
Open source →- Added
RedirectPolicy, that will make it possible to partially emulate how redirects are returned onioplatforms. - Added
streamRequestsoption toFetchClient. This allows you to use Fetch request body streaming utilizing half-duplex connection. - Fixed dev dependency versions to allow running on Dart 2.19.
- Added
-
1.0.0-dev.423 Jan 2023 pre-releaseRelease notes
Open source →- Bumped
fetch_apidependency to^1.0.0-dev.4. - Added conformance test.
- Full conformance with http client (with exclusion of streamed requests and redirects, due to API limitations).
FetchResponseisRedirectnow is alwaysfalse(because with disabled redirects exception is thrown on redirect, and browser always follows redirects otherwise)- Added
redirectedflag, that indicates whether request was redirected. - Added docs.
- Bumped
-
1.0.0-dev.323 Jan 2023 pre-releaseRelease notes
Open source →- Bumped
fetch_apidependency to^1.0.0-dev.3. - Use
fetch_api.compatibility_layerto support Dart 2.19. - Fixed name of example file.
- Bumped
-
1.0.0-dev.222 Jan 2023 pre-releaseRelease notes
Open source →- Bumped
fetch_apidependency to^1.0.0-dev.2.- Downgraded
jsdependency to^0.6.5.
- Downgraded
- Bumped
-
1.0.0-dev.122 Jan 2023 pre-release