Skip to main content

normalize_htu

Function normalize_htu 

Source
fn normalize_htu(raw: &str) -> Option<String>
Expand description

Strips query and fragment and lowercases scheme and host, so that htu comparison follows RFC 9449 §4.3’s “the same server can use different forms” allowance without demanding byte-identical strings for two URLs that name the same resource.