Trusted proxies
This crate allow you to extract a trusted client ip address, host and port from a http request.
Usage
use ;
use Request;
Features
- Use the
Forwardedheader to extract the client ip address and other informations in priority. - Fall back to the
X-Forwarded-Forheader if theForwardedheader is not present or not trusted. - Can extract information from the
X-Forwarded-Host/X-Forwarded-Proto/X-Forwarded-Byheaders if they are trusted.
Implementation
This crate try to follow the RFC 7239 specifications but may differ on real world usage.