Athena::Routing::Matcher::RequestMatcherInterface
Similar to ART::Matcher::URLMatcherInterface, but tries to match against an ART::Request.
Instance methods
match(request : ART::Request) : ART::Parameters
Tries to match the provided request to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the request.
Raises an ART::Exception::ResourceNotFound if no route could be matched.
Raises an ART::Exception::MethodNotAllowed if a route exists but not for the request's method.
match?(request : ART::Request) : ART::Parameters | Nil
Tries to match the provided request to its related route.
Returns an ART::Parameters containing the route's defaults and parameters resolved from the request.
Returns nil if no route could be matched or a route exists but not for the request's method.