Skip to main content

CLIENT_IP_HEADERS

Constant CLIENT_IP_HEADERS 

Source
pub const CLIENT_IP_HEADERS: &[ClientIpHeader];
Expand description

The effective header lookup order used by extract_client_ip.

The standardized Forwarded field is checked first, followed by the de facto X-Forwarded-For, X-Real-IP, and CF-Connecting-IP fields. The first present source wins. This standard-first order is a library convention, not an RFC-defined precedence or trust policy.