nio 0.0.3 copy "nio: ^0.0.3" to clipboard
nio: ^0.0.3 copied to clipboard

A powerful, developer-friendly networking layer built on top of Dio. Less code, typed results, auto auth refresh, retries, caching, offline queue — all in one. By Niral.

0.0.3 #

  • Offline request queue: pluggable OfflineQueueStorageMemoryOfflineQueueStorage, createOfflineFileQueueStorage (VM / native; not web), or your own implementation.
  • New NioErrorType.queuedOffline, OfflineQueueSettings on NioConfig, NioOptions.queueWhenOffline, peekOfflineQueue, clearOfflineQueue, flushOfflineQueue with OfflineFlushResult.
  • Each PendingOfflineRequest stores apiBaseUrl so replay targets the correct host.
  • Docs: README (pub.dev layout + offline section), example example/example.dart.
  • License / metadata credit: Niral Panchal.

0.0.2 #

  • Fix pub.dev scoring: point homepage / repository at the real GitHub repo under NIRAL-PANCHAL/nio
  • Add issue_tracker URL

0.0.1 #

  • Initial release
  • Nio client with GET, POST, PUT, PATCH, DELETE
  • getList<T> for automatic list parsing
  • ApiResult<T> sealed class with Success / Failure
  • NioError with typed NioErrorType and human-readable userMessage
  • Auth interceptor: auto token attach + 401 refresh + retry
  • Retry interceptor: exponential backoff for network / 5xx errors
  • Cache interceptor: in-memory GET caching with TTL
  • Logging interceptor: debug-only, auto-redacted auth headers
  • Mock support for testing without a server
  • File upload with progress tracking
  • File download with progress tracking
  • responseExtractor for unwrapping server response envelopes
  • Per-request NioOptions with global defaults via NioConfig
1
likes
160
points
17
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A powerful, developer-friendly networking layer built on top of Dio. Less code, typed results, auto auth refresh, retries, caching, offline queue — all in one. By Niral.

Repository (GitHub)
View/report issues

Topics

#http #network #dio

License

MIT (license)

Dependencies

dio

More

Packages that depend on nio