extract_real_ip_header

Function extract_real_ip_header 

Source
pub fn extract_real_ip_header(
    header_value: &str,
) -> impl DoubleEndedIterator<Item = IpAddr> + '_
Expand description

Get the list of ip addresses from an x-real-ip header

ยงExample

assert_eq!(
   vec![IpAddr::from([10, 10, 10, 10])],
   extract_x_forwarded_for_header("10.10.10.10").collect::<Vec<_>>()
);