Skip to main content

parse_retry_after

Function parse_retry_after 

Source
pub fn parse_retry_after(headers: &HeaderMap) -> Option<Duration>
Expand description

Parses Retry-After as a delay.

Supports both the integer delay-seconds form and the HTTP-date form (RFC 7231); a date in the past yields Duration::ZERO.