Skip to main content

registrable_domain

Function registrable_domain 

Source
pub fn registrable_domain(url: &str) -> String
Expand description

由 URL 或裸 host 取**注册域(eTLD+1)**作为 cookie 归并键。 psl 正确处理 example.com / example.co.uk / site.com.cn;IP / 单标签 / 未知后缀回退「末两段」。 大小写归一(host 不区分大小写)。