Skip to main content

extract_host

Function extract_host 

Source
pub fn extract_host(host_port: &str) -> Option<&str>
Expand description

Attempts to extract “host” from “host:port” format. Host can be either FQDN or IPv4/IPv6 address.