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
impl DefaultHttpRetryPolicy
Sourcepub fn with_backoff(backoff: ExponentialBackoff) -> Self
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
).