pub fn extract_host(host_port: &str) -> Option<&str>
Attempts to extract “host” from “host:port” format. Host can be either FQDN or IPv4/IPv6 address.