dio_bolt 0.0.1
dio_bolt: ^0.0.1 copied to clipboard
A lightweight production networking layer built on top of Dio that removes boilerplate while keeping Dio fully accessible.
0.0.1 #
Initial release of Dio Bolt — a lightweight, production-grade HTTP networking layer built on top of Dio.
Core Features #
- Universal Response Envelope: Unified non-generic
DioBoltResponsepreserving HTTP status codes, complete raw server payloads (responseData), and cancellation states without throwing normal HTTP exceptions. - REST Request Methods: Clean
get,post,put,patch, anddeletemethods resolving directly toDioBoltResponse. - Authentication & Token Refresh:
DioBoltAuthwith single-flight token refresh mutex on HTTP 401, persistence callbacks, automatic authenticated retry, and per-requestskipAuth()control. - Resilient Retries:
DioBoltRetryConfigwith exponential backoff, full jitter,Retry-Afterheader parsing, idempotent method safeguards, and request replayability verification. - Upload & Download Subsystem:
- Replayable multipart uploads (
DioBoltFile.fromPath,DioBoltFile.fromBytes) and one-shot streaming (DioBoltFile.fromStream). - Protected downloads with pre-flight conflict checks, isolated temporary staging, cleanup safeguards on failure/cancellation, and platform-hardened atomic file replacement.
- In-memory
downloadBytesfor direct buffer downloads.
- Replayable multipart uploads (
- Developer-Friendly Logging:
DioBoltLogConfigwith automatic sensitive-key redaction, cURL command generation, and zero-crash execution isolation. - Full Dio Interoperability: Direct access to underlying
Dioinstance, options, interceptors, and transformer pipeline.