idna::uts46

Function verify_dns_length

Source
pub fn verify_dns_length(domain_name: &str, allow_trailing_dot: bool) -> bool
Expand description

Performs the VerifyDNSLength check on the output of the ToASCII operation.

If the second argument is false, the trailing root label dot is allowed.

§Panics

Panics in debug mode if the argument isn’t ASCII.