Skip to main content

parse_retry_after

Function parse_retry_after 

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

Seconds to wait according to a Retry-After value.

Accepts delta-seconds (digits only) or an IMF-fixdate such as Sun, 06 Nov 1994 08:49:37 GMT. A date in the past gives Some(0). Anything else, including the obsolete date formats, gives None.