hyper_util::client::legacy::connect::http

Function set_port

source
fn set_port(addr: &mut SocketAddr, host_port: u16, explicit: bool)
Expand description

Respect explicit ports in the URI, if none, either keep non 0 ports resolved from a custom dns resolver, or use the default port for the scheme.