pub fn is_valid_host(host: &str) -> boolExpand description
Returns whether host is a valid domain, IP address, or host:port/ip:port
pair.
This accepts a literal host string, not a wildcard pattern such as
*.example.com; see HttpAclBuilder::add_allowed_host
for wildcard syntax.