Skip to main content

retry_delay_from_response

Function retry_delay_from_response 

Source
pub fn retry_delay_from_response(
    response: &Response,
    attempt: u32,
    config: &HttpClientConfig,
) -> Duration
Expand description

Calculate retry delay from response headers or exponential backoff

Checks the Retry-After header first (seconds value), then falls back to exponential backoff with jitter.