smart_request 0.2.0 copy "smart_request: ^0.2.0" to clipboard
smart_request: ^0.2.0 copied to clipboard

A lightweight Dart package for resilient API calls with retry, backoff, timeout, and fallback.

0.2.0 #

  • Added offline cache manager with three strategies:
    • noCache – always call API
    • cacheFirst – return from cache if found, otherwise call API
    • cacheAndRefresh – return cache immediately and refresh in background
  • Introduced customizable cache key builder (based on method, URL, query, body, and headers)
  • Added onRefresh callback for background refresh
  • Example updated with MemoryCacheStore
  • Internal refactor for better extensibility

0.1.1 #

  • Updated Readme file

0.1.0 #

  • First public release
  • Pure Dart (no Flutter dependency)
  • Exponential backoff with optional jitter
  • Retry predicate and callbacks (onError, onRetry)
  • Optional fallback request when retries are exhausted
0
likes
160
points
39
downloads

Publisher

verified publishermwaqas.mobvers.com

Weekly Downloads

A lightweight Dart package for resilient API calls with retry, backoff, timeout, and fallback.

Repository (GitHub)
View/report issues

Topics

#http #retry #backoff #networking

Documentation

API reference

License

MIT (license)

More

Packages that depend on smart_request