Skip to main content

parse_retry_after

Function parse_retry_after 

Source
pub fn parse_retry_after(value: &str) -> Option<Duration>
Expand description

Retry-After in delta-seconds form. The HTTP-date form is rare in practice and parsing dates without a date library invites bugs, so we fall back to our own backoff for it rather than guess.