pub(crate) trait RetryExt {
// Required method
fn should_retry(&self) -> bool;
}Expand description
An extension trait to help determine if a given HTTP request is retryable.
Modified from Retryable in reqwest-middleware.
We vendor this code to avoid a dependency on reqwest-middleware and
to easily customize the logic.
Required Methods§
fn should_retry(&self) -> bool
Implementations on Foreign Types§
Source§impl RetryExt for StatusCode
impl RetryExt for StatusCode
Source§fn should_retry(&self) -> bool
fn should_retry(&self) -> bool
Try to map a reqwest response into Retryable.