remote_ip v0.2.0 RemoteIp.Headers View Source
Entry point for parsing any type of forwarding header.
Link to this section Summary
Functions
Selects the appropriate headers and parses IPs out of them.
Link to this section Types
Link to this section Functions
Selects the appropriate headers and parses IPs out of them.
headers
- The entire list of thePlug.Conn
req_headers
allowed
- The list of headersRemoteIp
is configured to look for, converted to aMapSet
for efficiency
The actual parsing is delegated to the RemoteIp.Headers.*
submodules:
"forwarded"
is parsed byRemoteIp.Headers.Forwarded
- everything else is parsed by
RemoteIp.Headers.Generic