nitro_http 0.0.5 copy "nitro_http: ^0.0.5" to clipboard
nitro_http: ^0.0.5 copied to clipboard

A fast HTTP client for Flutter backed by a native libcurl C++ engine over Nitro FFI, with HTTP/1.1, HTTP/2, HTTP/3, streaming and WebSockets.

110/ 160
pub points
286
downloads

We analyzed this package 4 days ago, and awarded it 110 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

620 out of 659 API elements (94.1 %) have documentation comments.

Some symbols that are missing documentation: nitro_http.BinaryDataReceived.BinaryDataReceived.new, nitro_http.BinaryDataReceived.data, nitro_http.CancelToken.CancelToken.new, nitro_http.ClientSettings, nitro_http.CloseReceived.CloseReceived.new.

Passed check 10/10 points: Package has an example

Partially passed report section
Platform support
10 / 20trigger folding of the section

Partially passed check 10/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 does not support platform `Web`.

Because:

  • package:nitro_http/nitro_http.dart that imports:
  • package:nitro_http/src/compat/http_compat.dart that imports:
  • package:nitro_http/src/api/client.dart that imports:
  • package:nitro_http/src/internal/request_runner.dart that imports:
  • package:nitro_http/src/internal/raw_mapping.dart that imports:
  • package:nitro_http/src/nitro_http.native.dart that imports:
  • package:nitro_http/src/nitro_http.platform.g.dart that imports:
  • package:nitro_http/src/generated/web/nitro_http.web.bridge.g.dart that imports:
  • package:nitro/web_bridge.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

WASM compatibility:

Package not compatible with runtime wasm

Because:

  • package:nitro_http/nitro_http.dart that imports:
  • package:nitro_http/src/compat/http_compat.dart that imports:
  • package:nitro_http/src/api/request.dart that imports:
  • package:nitro_http/src/api/body.dart that imports:
  • dart:io

Note: This package supports Web but is not WASM-compatible, resulting in a partial score. See https://dart.dev/web/wasm for details.

Built-in Kotlin support:

Legacy Kotlin configuration detected in `android/build.gradle`.

This plugin applies the Kotlin Gradle Plugin (KGP) or uses the android.kotlinOptions{} block.

Note: This Android plugin does not support built-in Kotlin. In the future, this might affect scoring. See https://docs.flutter.dev/release/breaking-changes/migrate-to-built-in-kotlin/for-plugin-authors for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

WARNING: The asset directory 'assets/web/' doesn't exist.

pubspec.yaml:76:7

   ╷
76 │     - assets/web/
   │       ^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze pubspec.yaml

Failed report section
Support up-to-date dependencies
20 / 40trigger folding of the section

Passed check 10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
dio ^5.7.0 5.11.1 5.11.1
http ^1.2.0 1.6.0 1.6.0
nitro ^0.7.5 0.7.5 0.7.5
web ^1.1.0 1.1.1 1.1.1
web_socket ^1.0.0 1.0.1 1.0.1
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
dio_web_adapter - 2.2.2 2.2.2
ffi - 2.2.0 2.2.0
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
mime - 2.1.0 2.1.0
nitro_annotations - 0.7.5 0.7.5
path - 1.9.1 1.9.1
plugin_platform_interface - 2.1.8 2.1.8
source_span - 1.10.2 1.10.2
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.4.2 2.4.2

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 2 errors:

  • UNDEFINED_CLASS - lib/src/compat/http_compat.dart:104:22 - Undefined class 'Abortable'.
  • UNDEFINED_FUNCTION - lib/src/compat/http_compat.dart:127:18 - The function 'RequestAbortedException' isn't defined.

Run flutter pub downgrade and then flutter analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.23.19, Flutter 3.47.0, Dart 3.13.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
19
likes
110
points
286
downloads

Documentation

Documentation
API reference

Publisher

verified publishershreeman.dev

Weekly Downloads

A fast HTTP client for Flutter backed by a native libcurl C++ engine over Nitro FFI, with HTTP/1.1, HTTP/2, HTTP/3, streaming and WebSockets.

Repository (GitHub)
View/report issues

Topics

#http #network #ffi #nitro #websocket

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

dio, flutter, flutter_web_plugins, http, nitro, web, web_socket

More

Packages that depend on nitro_http

Packages that implement nitro_http