class Athena::Routing::Matcher::TraceableURLMatcher
Overview
Extension of ART::Matcher::URLMatcher
to assist with debugging by tracing the match.
See #traces
.
Defined in:
matcher/traceable_url_matcher.crConstructors
Instance Method Summary
-
#match(path : String) : Hash(String, String | Nil)
:inherit:
-
#traces(path : String) : Array(ART::Matcher::TraceableURLMatcher::Trace)
Returns an array of
ART::Matcher::TraceableURLMatcher::Trace
representing the history of the matching logic when trying to match the provided path. -
#traces(request : ART::Request) : Array(ART::Matcher::TraceableURLMatcher::Trace)
Returns an array of
ART::Matcher::TraceableURLMatcher::Trace
representing the history of the matching logic when trying to match the provided request.
Instance methods inherited from class Athena::Routing::Matcher::URLMatcher
context : ART::RequestContext
context,
context=(context : ART::RequestContext)
context=,
match(path : String) : Hash(String, String | Nil)match(request : ART::Request) : Hash(String, String | Nil) match, match?(path : String) : Hash(String, String | Nil) | Nil
match?(request : ART::Request) : Hash(String, String | Nil) | Nil match?
Constructor methods inherited from class Athena::Routing::Matcher::URLMatcher
new(context : ART::RequestContext)
new
Instance methods inherited from module Athena::Routing::Matcher::URLMatcherInterface
match(path : String) : Hash(String, String | Nil)
match,
match?(path : String) : Hash(String, String | Nil) | Nil
match?
Instance methods inherited from module Athena::Routing::RequestContextAwareInterface
context : ART::RequestContext
context,
context=(context : ART::RequestContext)
context=
Instance methods inherited from module Athena::Routing::Matcher::RequestMatcherInterface
match(request : ART::Request) : Hash(String, String | Nil)
match,
match?(request : ART::Request) : Hash(String, String | Nil) | Nil
match?
Constructor Detail
Instance Method Detail
def traces(path : String) : Array(ART::Matcher::TraceableURLMatcher::Trace)
#
Returns an array of ART::Matcher::TraceableURLMatcher::Trace
representing the history of the matching logic when trying to match the provided path.
Returns an array of ART::Matcher::TraceableURLMatcher::Trace
representing the history of the matching logic when trying to match the provided request.