forked from mirror/reqwest-middleware
594075583c
* Add a generic function to the middleware struct for the `Retryable` decision. The generic function can be used to define custom behaviour to decide whether to retry a request or not. By default, this function is `Retryable::from_reqwest_response` which is the same as it was before. * Add a way to create custom retry policies. A RetryStrategy will dictate what decision will be made based on the result of the sent request. * Add RetryableStrategy in the `RetryTransientMiddleware` struct instead of the seperate functions * Add constructor to create a `RetryTransientMiddleware` with a custom `RetryableStrategy` * Run `cargo fmt` * Add example code to the `RetryableStrategy` struct * Run `cargo fmt` * Updated changelog * use a trait * docs * include latest changes Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
38 lines
1 KiB
Markdown
38 lines
1 KiB
Markdown
# Changelog
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
## [Unreleased]
|
|
### Added
|
|
- `RetryableStrategy` which allows for custom retry decisions based on the response that a request got
|
|
|
|
## [0.2.1] - 2022-12-01
|
|
|
|
### Changed
|
|
- Classify `io::Error`s and `hyper::Error(Canceled)` as transient
|
|
|
|
## [0.2.0] - 2022-11-15
|
|
### Changed
|
|
- Updated `reqwest-middleware` to `0.2.0`
|
|
|
|
## [0.1.4] - 2022-02-21
|
|
### Changed
|
|
- Updated `reqwest-middleware` to `0.1.5`
|
|
|
|
## [0.1.3] - 2022-01-24
|
|
### Changed
|
|
- Updated `reqwest-middleware` to `0.1.4`
|
|
|
|
## [0.1.2] - 2021-09-28
|
|
### Added
|
|
- Re-export `RetryPolicy` from the crate root.
|
|
### Changed
|
|
- Disabled default features on `reqwest`
|
|
- Replaced `truelayer-extensions` with `task-local-extensions`
|
|
- Updated `reqwest-middleware` to `0.1.2`
|
|
|
|
## [0.1.1] - 2021-09-15
|
|
### Changed
|
|
- Updated `reqwest-middleware` dependency to `0.1.1`.
|