Skip to content

A fork of Dart's HTTP package with request cancellation using cancellation_token.

License

Notifications You must be signed in to change notification settings

JonathanPeterCole/dart-cancellation-token-http

 
 

Repository files navigation

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'.

About

A fork of Dart's HTTP package with request cancellation using cancellation_token.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Dart 92.0%
  • Objective-C 2.6%
  • C++ 2.0%
  • CMake 1.7%
  • Kotlin 0.6%
  • Ruby 0.5%
  • Other 0.6%