Skip to main content

split_host

Function split_host 

Source
pub fn split_host(url: &Value)
Expand description

Split the host just assigned to url into the hostname and port it actually carries.

host is DERIVED from those two on every refresh, so writing it as one string was undone immediately: u.host = 'b:99' left the URL pointing at the old host entirely.