Skip to main content

normalize_host_input

Function normalize_host_input 

Source
pub fn normalize_host_input(raw: &str) -> Result<String>
Expand description

Strip scheme/path and reject empty hosts. Allows DNS names and host:port.