Skip to main content

host_only

Function host_only 

Source
pub fn host_only(h: &str) -> String
Expand description

host[:port] or [v6]:port to its lowercased host, brackets kept for v6 so it compares with what a browser sends.