Function adblock::url_parser::parse_url
source ยท pub fn parse_url(url: &str) -> Option<RequestUrl>
Expand description
Return the string representation of the host (domain or IP address) for this URL, if any together with the URL.
As part of hostname parsing, punycode decoding is used to convert URLs with UTF characters to plain ASCII ones. Serialisation then contains this decoded URL that is used for further matching.