Function net_traits::pub_domains::reg_host
source ยท pub fn reg_host(url: &ServoUrl) -> Option<Host>
Expand description
The registered domain name (aka eTLD+1) for a URL. Returns None if the URL has no host name. Returns the registered suffix for the host name if it is a domain. Leaves the host name alone if it is an IP address.