Skip to content

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 = 1#

The forwarded header as defined by RFC 7239.

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?#

View source

#forwarded_for?#

View source

#forwarded_host?#

View source

#forwarded_param : String | ::Nil#

Returns the forwarded param related to a given proxy header.

ATH::Request::ProxyHeader::FORWARDED_PROTO.forwarded_param => "proto"
View source

#forwarded_port?#

View source

#forwarded_proto?#

View source

#header : String#

Returns the string header name for a given proxy header.

ATH::Request::ProxyHeader::FORWARDED_PROTO.header => "x-forwarded-proto"
View source

#none?#

View source