Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.11 KB

README.md

File metadata and controls

20 lines (13 loc) · 1.11 KB

Cancellation Token HTTP

A fork of dart-lang/http with support for request cancellation using cancellation_token.

Packages

Although this fork contains all of the packages from the source repo, only the following packages have been updated with cancellation:

Package Description Version
cancellation_token_http A composable, multi-platform, Future-based API for HTTP requests. pub package
cancellation_token_http_client_conformance_tests A library that tests whether implementations of package:cancellation_token_http's Client class behave as expected.

Testing

If you get the following error when running tests, make sure you use dart test instead of flutter test:

IsolateSpawnException: Unable to spawn isolate: Error: Couldn't resolve the package 'cancellation_token_http' in 'package:cancellation_token_http/http.dart'.