pub fn parse_retry_after(value: &str) -> Option<u64>Expand description
Parse an integer Retry-After value from a header string.
Returns None if the value cannot be parsed as a non-negative integer.
HTTP-date format is intentionally not supported.
ยงExample
use stygian_graph::adapters::graphql_rate_limit::parse_retry_after;
assert_eq!(parse_retry_after("30"), Some(30));
assert_eq!(parse_retry_after("not-a-number"), None);