dns_resolve

Function dns_resolve 

Source
pub async fn dns_resolve(uri: &Uri) -> Result<Vec<SocketAddr>>
Expand description

Use the host:port portion of the uri and resolve to an sockaddr. If uri host portion is an ip string, then directly use the ip addr without dns lookup.