Skip to content

struct Athena::Framework::RequestMatcher::Hostname
inherits Struct #

Checks if the ATH::Request#hostname matches the allowed pattern.

Included modules

Athena::Framework::RequestMatcher::Interface

Constructors#

.new(regex : Regex)#

Methods#

#matches?(request : ATH::Request) : Bool#

Decides whether the rule(s) implemented by the strategy matches the provided request.