Skip to main content

parse_retry_after_secs

Function parse_retry_after_secs 

Source
pub fn parse_retry_after_secs(value: &str) -> Option<u64>
Expand description

Parses a Retry-After value expressed in integer seconds.

HTTP also permits an absolute-date form; providers only emit the delta form on 429, so we parse the numeric-seconds form and return None for anything we cannot interpret (including the HTTP-date form).