Skip to main content

origin_of

Function origin_of 

Source
pub fn origin_of(url: &str) -> Result<String>
Expand description

scheme://host[:port] of url, host lowercased and a default port dropped, so two spellings of one origin compare equal and two origins never do.