dart_http2_flutter_sse 1.0.2
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(): Replaceddart:io.HttpClientwith real HTTP/2 via thehttp2package (SecureSocket + ALPNh2), 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.