Skip to main content

parse_retry_after

Function parse_retry_after 

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

Parse a Retry-After response header as a delta-seconds [Duration].

Only the numeric delta-seconds form is supported (the common case for 429/503); the HTTP-date form is ignored (returns None), as is a missing or malformed header.