get_forwarded_for

Function get_forwarded_for 

Source
pub fn get_forwarded_for(
    headers: &HeaderMap,
) -> impl DoubleEndedIterator<Item = IpAddr> + '_
Expand description

Extracts the ip addresses from the “forwarded for” chain from a request

Note that this doesn’t perform any validation against clients forging the headers