class Athena::Framework::RequestMatcher
inherits Reference
#
Verifies that all checks match against an ATH::Request
instance.
matcher = ATH::RequestMatcher.new(
ATH::RequestMatcher::Path.new(%r(/admin/foo)),
ATH::RequestMatcher::Method.new("GET"),
)
matcher.matches?(ATH::Request.new "GET", "/admin/foo") # => true
matcher.matches?(ATH::Request.new "POST", "/admin/foo") # => false
Included modules
Athena::Framework::RequestMatcher::Interface
Constructors#
Methods#
#matches?(request : ATH::Request) : Bool
#
Decides whether the rule(s) implemented by the strategy matches the provided request.