Skip to main content

split_host_port

Function split_host_port 

Source
fn split_host_port(host: &str, scheme: &str) -> (String, u16)
Expand description

Splits a Host header into (hostname, port), defaulting the port from the scheme when the host carries none.