mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 19:06:31 +00:00
f8ff599f50
* refactor: Simplify retry middleware in reqwest. Removed retry limit: - Remove MAXIMUM_NUMBER_OF_RETRIES metadata and references in middleware.rs - Correct mispelling: retry_decision to retry_decision in middleware.rs - Update Retryable matching to only match Retryable::Transient in middleware.rs - Simplify branching by removing n_past_retries < MAXIMUM_NUMBER_OF_RETRIES condition in middleware.rs * test: Remove retry cap assertion from test file remove retry limit assertion test |
||
---|---|---|
.. | ||
src | ||
tests/all | ||
.gitignore | ||
Cargo.toml | ||
CHANGELOG.md | ||
README.md |
reqwest-retry
Retry middleware implementation for
reqwest-middleware
.
Overview
Build RetryTransientMiddleware
from a RetryPolicy
, then attach it to a
reqwest_middleware::ClientBuilder
.
retry-policies::policies
is reexported under
reqwest_retry::policies
for convenience.
See reqwest_middleware
for usage with reqwest.
License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.