Skip to main content

domain_of

Function domain_of 

Source
pub fn domain_of(host: &str) -> String
Expand description

The domain under which a host lives, roughly: its last two labels, three for the few countries that register under a second level (“co.uk”).