Skip to main content

direct_peer

Function direct_peer 

Source
pub fn direct_peer(request: &Request) -> Option<IpAddr>
Expand description

Reads the TCP peer populated by into_make_service_with_connect_info::<SocketAddr>(). UDS or services without connection info return None; headers cannot fill this gap.