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.
pub fn parse_retry_after(headers: &HeaderMap) -> Option<Duration>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.