Skip to main content

parse_hsts

Function parse_hsts 

Source
pub fn parse_hsts(value: &str) -> Option<Hsts>
Expand description

Parse a single Strict-Transport-Security header value. Returns None if max-age is missing or unparsable (a directive without max-age is not a valid HSTS policy per RFC 6797 §6.1).