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.cr

Constructors

Instance Method Summary

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

def self.new(routes : ART::RouteCollection, context : ART::RequestContext) #

[View source]

Instance Method Detail

def match(path : String) : Hash(String, String | Nil) #

:inherit:


[View source]
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.


[View source]

Returns an array of ART::Matcher::TraceableURLMatcher::Trace representing the history of the matching logic when trying to match the provided request.


[View source]