extended_http 1.3.12 copy "extended_http: ^1.3.12" to clipboard
extended_http: ^1.3.12 copied to clipboard

Extends HTTP package to provide cache, store user credential, predefined authorization workflow, set custom request headers, beautiful logs and easy debugging with request debugId

Easy API with authorization and caching #

Test DryRun Publish PubVersion Issues

A Flutter HTTP package supports authorization and caching

Features #

  • Configuration for multiple API domains
  • Built-in authData storage to simply store token or user credential
  • Handle unauthorized requests by define onUnauthorized method
  • Specify when to retry the requests via shouldRetry & onError method
  • 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

Dependencies #

http

hive

Feel free to leave an issue if you need help or see something wrong in this package #

4
likes
160
points
60
downloads

Publisher

verified publisherbesoft.vn

Weekly Downloads

Extends HTTP package to provide cache, store user credential, predefined authorization workflow, set custom request headers, beautiful logs and easy debugging with request debugId

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, hive, hive_flutter, http, http_parser

More

Packages that depend on extended_http