Skip to content

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

Checks the presence of HTTP headers in an ATH::Request.

Included modules

Athena::Framework::RequestMatcher::Interface

Constructors#

.new(headers : Array(String))#

.new(*headers : String)#

Methods#

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

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