DefaultHttpRetryPolicy

Type Alias DefaultHttpRetryPolicy 

Source
pub type DefaultHttpRetryPolicy = RollingExponentialBackoffRetryPolicy<StandardHttpClassifier, StandardHttpRetryLifecycle>;
Expand description

A batteries-included retry policy suitable for HTTP-based clients.

Aliased Type§

pub struct DefaultHttpRetryPolicy { /* private fields */ }

Implementations§

Source§

impl DefaultHttpRetryPolicy

Source

pub fn with_backoff(backoff: ExponentialBackoff) -> Self

Creates a new retry policy adapted to HTTP-based clients with the given exponential backoff strategy.

This policy uses the standard HTTP classifier (StandardHttpClassifier) and retry lifecycle (StandardHttpRetryLifecycle).