pub fn parse_url(s: &str) -> Result<ParsedURL, NetError>
parse_url parses a string into a ParsedURL, with host validation and path cleaning.