Skip to main content

HttpRetryPredicate

Type Alias HttpRetryPredicate 

Source
pub type HttpRetryPredicate<B = ()> = Arc<dyn Fn(&Response<B>) -> bool + Send + Sync>;
Expand description

A predicate that decides whether a response should be treated as retriable.

The predicate receives the response and returns true if the response should be retried.

Aliased Typeยง

pub struct HttpRetryPredicate<B = ()> { /* private fields */ }