durable_queue_dio 0.1.0
durable_queue_dio: ^0.1.0 copied to clipboard
Dio integration for durable_queue. Retry rules for HTTP errors, Retry-After, idempotency headers, cancellation, and queued HTTP requests.
0.1.0 #
- Initial release.
DioRetryRules: retries timeouts, connection failures, and HTTP 408, 425, 429, 500, 502, 503, 504 by default; honorsRetry-After(seconds or HTTP-date) up to a configurable maximum. Userules.shouldRetryasretryIfandrules.retryDelayasretryDelay.parseRetryAfterforRetry-Afterheader values. Two-digit years in RFC 850 dates follow the RFC 9110 50-year rule with everyhttp_parser4.x.TaskContexthelpers:dioCancelToken()aborts the request when the task is cancelled;withIdempotencyKey()sends the task's idempotency key as a header (defaultIdempotency-Key).HttpRequestTaskandqueue.registerHttpRequests(dio): queue HTTP requests (method, URL, headers, query, JSON or text body) without writing a task class, with an optionalonResponsecallback.- Requires
durable_queue0.4.0 anddio5.11.1 or later.