cancellation_token_http 2.1.0 cancellation_token_http: ^2.1.0 copied to clipboard
A fork of Dart's HTTP package with request cancellation using cancellation_token.
We analyzed this package 4 days ago, and awarded it 160 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
133 out of 144 API elements (92.4 %) have documentation comments.
Some symbols that are missing documentation: browser_client
, http.BaseRequest.headers
, http.BaseResponse.isRedirect
, http.ByteStream.toStringStream
, http.CancelledException
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
These issues are present but do not affect the score, because they may not originate in your package:
Package not compatible with platform Android
Because:
package:cancellation_token_http/browser_client.dart
that imports:package:cancellation_token_http/src/browser_client.dart
that imports:package:web/web.dart
that imports:package:web/src/helpers.dart
that imports:package:web/src/helpers/http.dart
that imports:package:web/src/helpers/events/events.dart
that imports:package:web/src/helpers/events/streams.dart
that imports:package:web/src/dom.dart
that imports:package:web/src/dom/xhr.dart
that imports:package:web/src/dom/html.dart
that imports:package:web/src/dom/webmidi.dart
that imports:package:web/src/dom/hr_time.dart
that imports:package:web/src/dom/user_timing.dart
that imports:package:web/src/dom/performance_timeline.dart
that imports:dart:js_interop
Package not compatible with platform iOS
Because:
package:cancellation_token_http/browser_client.dart
that imports:package:cancellation_token_http/src/browser_client.dart
that imports:package:web/web.dart
that imports:package:web/src/helpers.dart
that imports:package:web/src/helpers/http.dart
that imports:package:web/src/helpers/events/events.dart
that imports:package:web/src/helpers/events/streams.dart
that imports:package:web/src/dom.dart
that imports:package:web/src/dom/xhr.dart
that imports:package:web/src/dom/html.dart
that imports:package:web/src/dom/webmidi.dart
that imports:package:web/src/dom/hr_time.dart
that imports:package:web/src/dom/user_timing.dart
that imports:package:web/src/dom/performance_timeline.dart
that imports:dart:js_interop
Package not compatible with platform Windows
Because:
package:cancellation_token_http/browser_client.dart
that imports:package:cancellation_token_http/src/browser_client.dart
that imports:package:web/web.dart
that imports:package:web/src/helpers.dart
that imports:package:web/src/helpers/http.dart
that imports:package:web/src/helpers/events/events.dart
that imports:package:web/src/helpers/events/streams.dart
that imports:package:web/src/dom.dart
that imports:package:web/src/dom/xhr.dart
that imports:package:web/src/dom/html.dart
that imports:package:web/src/dom/webmidi.dart
that imports:package:web/src/dom/hr_time.dart
that imports:package:web/src/dom/user_timing.dart
that imports:package:web/src/dom/performance_timeline.dart
that imports:dart:js_interop
Package not compatible with platform Linux
Because:
package:cancellation_token_http/browser_client.dart
that imports:package:cancellation_token_http/src/browser_client.dart
that imports:package:web/web.dart
that imports:package:web/src/helpers.dart
that imports:package:web/src/helpers/http.dart
that imports:package:web/src/helpers/events/events.dart
that imports:package:web/src/helpers/events/streams.dart
that imports:package:web/src/dom.dart
that imports:package:web/src/dom/xhr.dart
that imports:package:web/src/dom/html.dart
that imports:package:web/src/dom/webmidi.dart
that imports:package:web/src/dom/hr_time.dart
that imports:package:web/src/dom/user_timing.dart
that imports:package:web/src/dom/performance_timeline.dart
that imports:dart:js_interop
Package not compatible with platform macOS
Because:
package:cancellation_token_http/browser_client.dart
that imports:package:cancellation_token_http/src/browser_client.dart
that imports:package:web/web.dart
that imports:package:web/src/helpers.dart
that imports:package:web/src/helpers/http.dart
that imports:package:web/src/helpers/events/events.dart
that imports:package:web/src/helpers/events/streams.dart
that imports:package:web/src/dom.dart
that imports:package:web/src/dom/xhr.dart
that imports:package:web/src/dom/html.dart
that imports:package:web/src/dom/webmidi.dart
that imports:package:web/src/dom/hr_time.dart
that imports:package:web/src/dom/user_timing.dart
that imports:package:web/src/dom/performance_timeline.dart
that imports:dart:js_interop
Package not compatible with platform Web
Because:
package:cancellation_token_http/io_client.dart
that imports:package:cancellation_token_http/src/io_streamed_response.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:cancellation_token_http/io_client.dart
that imports:package:cancellation_token_http/src/io_streamed_response.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
50/50 points: code has no errors, warnings, lints, or formatting issues
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
^2.5.0 |
2.12.0 | 2.12.0 |
cancellation_token |
^2.0.0 |
2.0.1 | 2.0.1 |
http_parser |
^4.0.0 |
4.1.1 | 4.1.1 |
meta |
^1.3.0 |
1.16.0 | 1.16.0 |
web |
>=0.5.0 <2.0.0 |
1.1.0 | 1.1.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 |
path |
- | 1.9.1 | 1.9.1 |
source_span |
- | 1.10.0 | 1.10.0 |
string_scanner |
- | 1.4.0 | 1.4.0 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.4.0 | 1.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.15
, Dart 3.5.4
.
Check the analysis log for details.