enum Athena::Framework::Request::ProxyHeader
#
Represents the supported Proxy Headers.
Can be used via ATH::Request.set_trusted_proxies to whitelist which headers are allowed.
See the external documentation for more information.
Members#
FORWARDED_FOR = 2#
The x-forwarded-for header.
FORWARDED_HOST = 4#
The x-forwarded-host header.
FORWARDED_PROTO = 8#
The x-forwarded-proto header.
FORWARDED_PORT = 16#
Similar to FORWARDED_HOST, but exclusive to the port number.
None = 0#
All = 31#
Methods#
#forwarded_param : String | ::Nil#
Returns the forwarded param related to a given proxy header.
ATH::Request::ProxyHeader::FORWARDED_PROTO.forwarded_param => "proto"
#header : String#
Returns the string header name for a given proxy header.
ATH::Request::ProxyHeader::FORWARDED_PROTO.header => "x-forwarded-proto"