reqwest-middleware/reqwest-retry
Matthew Gapp f8ff599f50
fix: remove middleware retry limit (#87)
* 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
2023-04-17 13:02:13 +01:00
..
src fix: remove middleware retry limit (#87) 2023-04-17 13:02:13 +01:00
tests/all fix: remove middleware retry limit (#87) 2023-04-17 13:02:13 +01:00
.gitignore Initial commit 2021-08-13 08:59:58 +01:00
CHANGELOG.md feat: classify io error connection reset by peer (#78) 2022-12-02 10:57:24 +01:00
Cargo.toml feat: wasm32-unknown-unknown support (#79) 2023-03-09 11:33:13 +00:00
README.md Include README in crate doctests and improve documentation (#8) 2021-09-28 19:26:03 +01:00

README.md

reqwest-retry

Retry middleware implementation for reqwest-middleware.

Crates.io Docs.rs CI Coverage Status

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.