Skip to main content

parse_alt_svc

Function parse_alt_svc 

Source
pub fn parse_alt_svc(value: &str) -> AltSvc
Expand description

Parse an Alt-Svc header value (RFC 7838 §3), keeping only h3 alternatives.

Lenient as the RFC asks: an entry that does not parse, or names another protocol, is skipped rather than failing the header; unknown parameters, and an ma that is not a number, are ignored.