dart_http2_flutter_sse 1.0.2 copy "dart_http2_flutter_sse: ^1.0.2" to clipboard
dart_http2_flutter_sse: ^1.0.2 copied to clipboard

A production-ready HTTP/2 client package for Dart and Flutter with interceptors, retry, timeouts, cancellation, streaming, and connection pooling.

Changelog #

1.0.2 #

  • Fixed Http2Transport.sendStreaming(): Replaced dart:io.HttpClient with real HTTP/2 via the http2 package (SecureSocket + ALPN h2), enabling true SSE streaming through HTTP/2 gateways like Kong.
  • Fixed Http1FallbackTransport.sendStreaming(): Added proper request body serialization for JSON, form, bytes, and stream body types.
  • Fixed Http2Transport.sendStreaming(): Request body is now sent and the outgoing stream is properly closed after sending, fixing "Stream was terminated by peer (errorCode: 1)" errors.

1.0.1 #

  • Fixed repository and homepage URLs in pubspec.yaml.
  • Added CONTRIBUTING.md with contribution guidelines.
  • Updated LICENSE copyright to Faheem Riaz.
  • Added .pubignore to exclude build artifacts from publishing.
  • Resolved all lint warnings (zero issues on dart analyze).

1.0.0 #

  • Initial release.
  • HTTP/2 GET, POST, PUT, PATCH, DELETE requests.
  • Request/response headers, query parameters, JSON body, form body, raw bytes, and streaming body.
  • Response streaming for large downloads.
  • Connection reuse, multiplexing, and connection pooling.
  • TLS/ALPN where available.
  • Timeout support: connect, send, receive timeouts.
  • Cancellation tokens for cancelling active requests.
  • Retry policy with exponential backoff and jitter.
  • Interceptor system for request, response, and error handling.
  • Logging interceptor with safe redaction for tokens/passwords.
  • Certificate pinning support (native platforms).
  • Graceful HTTP/1.1 fallback on Web.
  • Comprehensive unit and integration tests.
  • Example Flutter app demonstrating all features.
1
likes
130
points
27
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A production-ready HTTP/2 client package for Dart and Flutter with interceptors, retry, timeouts, cancellation, streaming, and connection pooling.

Repository (GitHub)
View/report issues
Contributing

Topics

#http #http2 #networking #client #flutter

License

MIT (license)

Dependencies

flutter, http, http2, http_parser, meta

More

Packages that depend on dart_http2_flutter_sse