dio_toolkit 0.1.0 copy "dio_toolkit: ^0.1.0" to clipboard
dio_toolkit: ^0.1.0 copied to clipboard

Pragmatic, type-safe HTTP client on top of Dio with auth, refresh, retry, cache, and typed results.

CHANGELOG.md #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased #

  • TBD

0.1.0 - 2025-08-13 #

Added #

  • DioToolkitClient wrapper around Dio with sensible defaults.
  • Result<T> + unified ApiException (network, timeout, 4xx, 5xx, cancelled, unknown).
  • AuthInterceptor — automatic Authorization: Bearer <token> from provider.
  • RefreshInterceptor — single-flight token refresh on 401, queued requests, one replay.
  • RetryInterceptor — retries for timeouts and 502/503/504 with exponential backoff.
  • CacheInterceptor — opt-in in-memory cache for GET with TTL via CacheOptions.
  • LoggingInterceptor — lightweight stdout logger.
  • Example app under example/.
  • README with Quick Start, configuration, FAQ, and roadmap.

Fixed #

  • N/A

Changed #

  • N/A


Maintainer notes #

To cut the first release and publish on pub.flutter-io.cn:

git add .
git commit -m "chore: prepare 0.1.0"
# Tag the release
git tag -a v0.1.0 -m "Initial release: typed results, auth, refresh, retry, cache"
git push --follow-tags origin main

# Dry run publish
dart pub publish --dry-run
# Publish
dart pub publish

Update pubspec.yaml with repository links:

homepage: https://github.com/ZoomerDeveloper/dio_toolkit
repository: https://github.com/ZoomerDeveloper/dio_toolkit
issue_tracker: https://github.com/ZoomerDeveloper/dio_toolkit/issues
3
likes
140
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Pragmatic, type-safe HTTP client on top of Dio with auth, refresh, retry, cache, and typed results.

Repository (GitHub)
View/report issues

Topics

#dio #http #networking #interceptors

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

dio

More

Packages that depend on dio_toolkit