fetch_client 1.2.0
fetch_client: ^1.2.0 copied to clipboard
Client for http package based on Fetch API, enables streamed and cancelable requests on web and more.
1.2.0 #
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.
1.1.4 #
- Fix lint errors.
- Use
package:zekfad_lints/lib.yamlwhich aligns with core lints.
1.1.3 #
-
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.2 #
- Bumped
fetch_apito 2.2.0. - Fixed WASM support.
1.1.1 #
- 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.
1.1.0 #
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.
1.0.2 #
- Update docs to clarify compatibility restrictions.
1.0.0 #
- Public stable release.
- Bumped
fetch_apito 1.0.0.
1.0.0-dev.5 #
- 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.
1.0.0-dev.4 #
- 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.
1.0.0-dev.3 #
- Bumped
fetch_apidependency to^1.0.0-dev.3. - Use
fetch_api.compatibility_layerto support Dart 2.19. - Fixed name of example file.
1.0.0-dev.2 #
- Bumped
fetch_apidependency to^1.0.0-dev.2.- Downgraded
jsdependency to^0.6.5.
- Downgraded
1.0.0-dev.1 #
- Initial version.