pub fn extract_header_cloudfront_viewer_address(
headers: &HeaderMap,
) -> Result<Option<IpAddr>, Error>Expand description
Extract an untrusted client IP from AWS CloudFront’s
CloudFront-Viewer-Address IP:port value.
Both IPv4 and CloudFront’s unbracketed IPv6-with-port form are supported;
bracketed IPv6 socket-address syntax is accepted as well. A missing field
returns None; duplicate, non-text, empty, missing-port, invalid-port, or
invalid-IP values return an error without including the value. Surrounding
whitespace is ignored. This vendor field is not an IETF standard, and the
result remains raw and untrusted; no sender authentication is performed.