http_network_client 1.0.0
http_network_client: ^1.0.0 copied to clipboard
A Flutter network package built on Dio with intelligent AES-256 encrypted caching, automatic retry, SSL pinning, file uploads, and type-safe Either error handling.
1.0.0 #
Initial stable release.
- Dio-based HTTP client (GET, POST, PUT, PATCH, DELETE)
- AES-256-CBC encrypted, Hive-backed persistent response cache with configurable TTL
- Automatic offline fallback to cached data on network or connection errors
- Stale-while-revalidate support via
CacheConfig.additionCallback - Force-refresh cache with
CacheConfig.isToRefresh - Automatic request retry with configurable attempt count via
RetryConfig - SSL/TLS certificate pinning (PEM string or raw bytes)
- Single and multiple file upload helpers
- Per-URL request cancellation via cancel tokens
- Type-safe
Either<Response, FailureState>error handling (dartz) - Comprehensive HTTP status code handling (200, 201, 400, 401, 403, 404, 406, 422, 429, 500)
- Removed unused
shared_preferencesdependency