extended_http 1.0.1
extended_http: ^1.0.1 copied to clipboard
Extends HTTP package and combine with Hive to provide cache, store user credential, and also predefined authorization workflow, set global/specified request headers, beautiful logs and easy debugging [...]
Easy API with authorization and caching #
A Flutter HTTP package supports authorization and caching
Features #
- Configuration for multiple API domains
- Built-in
authDatastorage to simply store token or user credential - Handle unauthorized requests by define
onUnauthorizedmethod - Specify when to retry the requests via
shouldRetry&onErrormethod - Cache API response (for GET requests)
- Set request headers (such as: authorization token,...)
- Set request baseURL (Ex:
http://yourhost.com/api) - Set request timeout
All methods from BaseClient is inherited, including get, post, put, patch and more. See at BaseClient APIs.
TODO #
- Support fake responses for testing