Skip to main content

normalize_authority

Function normalize_authority 

Source
pub fn normalize_authority(value: &str) -> Option<String>
Expand description

Normalizes a host[:port] authority: lower-case, without user information or a trailing root dot. Returns None for an empty host or a value containing a scheme, path, or whitespace.