Skip to main content

RetryExt

Trait RetryExt 

Source
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§

Implementations on Foreign Types§

Source§

impl RetryExt for Error

Source§

impl RetryExt for StatusCode

Source§

fn should_retry(&self) -> bool

Try to map a reqwest response into Retryable.

Source§

impl RetryExt for Error

Implementors§