class Athena::Routing::Router
- Athena::Routing::Router
- Reference
- Object
Overview
Default implementation of ART::RouterInterface
.
Included Modules
Defined in:
routing/router.crConstructors
Instance Method Summary
-
#generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String
:inherit:
-
#match(request : HTTP::Request) : Amber::Router::RoutedResult(Athena::Routing::ActionBase)
Matches the provided request with its related
ART::Action
. -
#route_collection : ART::RouteCollection
Returns the
ART::RouteCollection
associated with this router.
Instance methods inherited from module Athena::Routing::RouterInterface
route_collection : ART::RouteCollection
route_collection
Instance methods inherited from module Athena::Routing::URLGeneratorInterface
generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String
generate
Instance methods inherited from module Athena::Routing::RequestMatcherInterface
match(request : HTTP::Request) : Amber::Router::RoutedResult(Athena::Routing::ActionBase)
match
Constructor Detail
Instance Method Detail
def generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String
#
:inherit:
Matches the provided request with its related ART::Action
.
OPTIMIZE Possibly raise a non ART::Exceptions::HTTPException
here to allow caller to determine what to do.
def route_collection : ART::RouteCollection
#
Returns the ART::RouteCollection
associated with this router.