via 1.2.2
via: ^1.2.2 copied to clipboard
A modern, type-safe HTTP client library for Dart/Flutter applications.
Changelog #
All notable changes to this project will be documented in this file.
1.2.2 - 2025-12-20 #
Fixed #
- Further improved
toCurlcharacter escaping by using single quotes for headers and URL to prevent shell interpretation issues. - Fixed
toJsoninViaResultto correctly handle null-aware response properties. - Added
responseobject toViaExceptioninViaResponseValidatorPipelinefor better debugging.
1.2.1 - 2025-12-20 #
Fixed #
- Fixed
toJsonandtoCurlimplementations inViaRequest. - Improved cURL command generation with better character escaping for terminal compatibility.
- Fixed
ViaExceptionJSON serialization by correcting null-aware syntax. - Adopted modern Dart null-aware map entries syntax (
?variable) for cleaner metadata.
1.2.0 - 2025-12-20 #
Changed #
- Refactored
ViaPipelineto be non-generic for better flexibility and simplicity. - Removed generic requirements from all built-in pipelines (
ViaLoggerPipeline,ViaCachePipeline, etc.). - Simplified custom result transformation by removing
covariantcomplexity in favor of standard inheritance.
1.1.0 - 2025-12-20 #
1.0.0 - 2025-12-20 #
Added #
- Initial release of the Via HTTP engine.
Viaclass for high-level HTTP operations.ViaExecutorwith support forViaPipelinearchitecture.- Built-in resilience with
ViaRetry(automatic retries). - Request cancellation support via
CancelToken. - Type-safe JSON parsing helpers (
asMap,asList). - Memory-managed
ViaCachePipeline(FIFO withmaxEntries). - Advanced pipelines:
ViaLoggerPipeline(with cURL support),ViaDebouncePipeline,ViaThrottlePipeline, andViaResponseValidatorPipeline. - Connection pooling support with shared
http.Client. - Isolate-based execution support for background processing.
errorIfvalidation inViaExecutorto treat HTTP responses as errors (defaults to non-2xx).