extended_http 1.0.0
extended_http: ^1.0.0 copied to clipboard
It extends HTTP package then combine with Hive to provide cache. It also supports authorization via custom headers.
Easy API with authorization and caching #
A Flutter HTTP package supports authorization and caching
Features #
- 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 multiple API domains, alternative domains.
- Support auto authentication with access and refresh token.
- Support different caching options to specific paths.
- Support fake responses for testing