flutter_client_factory 1.0.2
flutter_client_factory: ^1.0.2 copied to clipboard
Dependency-free HTTP client factory for Dart and Flutter with streaming, native and browser transports, and optional resilience policies.
Changelog #
1.0.2 #
- Reorganize documentation into practical, linked use-case recipes.
- Demonstrate client injection, explicit HTTP status validation, typed JSON and plain-text responses in the default service example.
- Include built-in logging, JSON Accept headers, timeouts, interceptor ordering, and deterministic service tests. No core API changes or runtime dependencies.
1.0.1 #
Fix building and resolving the action
1.0.0 #
Initial stable-version API for the dependency-free Dart networking core.
- Named and typed clients with lazy shared transports, lifetime rotation, explicit
ownership, and
registerClientnamed settings plus a configuration callback. - Native HTTP and browser Fetch with streamed responses and cancellation.
- String-URL HTTP verbs, repeated query values, immutable header/request helpers, bounded JSON/text/byte readers, status exceptions, and scoped response disposal.
- One ordered interceptor pipeline with optional retry, timeout, concurrency, circuit breaker, failover, hedging, authentication refresh, cache, and diagnostics.
- Client and request timeouts cover middleware, retries, and response consumption.
- JSON, URL-encoded forms, multipart fields/files, native streaming file parts, and explicit request-body replayability.
- Request-testing controller with method/predicate matching, bounded asynchronous waits, JSON/text flushing, and verification diagnostics.
- Native resumable downloads, host-scoped cookies, TCP/TLS/UDP, SSE, WebSockets, reconnect policies, and resource state APIs through focused optional imports.
- Simple default example, progressive use-case guides, runnable examples, automated validation, MIT license, and GitHub contribution templates.
Migration from development snapshots #
- Import
package:flutter_client_factory/flutter_client_factory.dart. - Replace
attemptInterceptorswith entries appended tointerceptors; ordering determines which policies repeat on retry/authentication replay. - The optional Flutter adapter is
flutter_client_factory_widgets1.0.0. - Requires Dart >=3.4.0 <4.0.0. Platform-specific restrictions and tested environments
are listed in
doc/platforms.mdanddoc/validation.md.