pub fn parse_host(s: &str) -> Result<Host, NetError>
parse_host parses a string into a Host, with validation similar to Go’s ParseHost.