remote_ip v0.1.1 RemoteIp.Headers
Entry point for parsing any type of forwarding header.
Summary
Functions
Selects the appropriate headers and parses IPs out of them
Types
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