class ActionController::Router::RouteHandler
- ActionController::Router::RouteHandler
- Reference
- Object
Included Modules
- HTTP::Handler
Defined in:
action-controller/router/route_handler.crConstructors
Instance Method Summary
-
#add_route(method : String, path : String, action : Tuple(Action, Bool))
Adds a route handler to the system Determines if routes are static or require decomposition and stores them appropriately
-
#call(context : HTTP::Server::Context)
Routes requests to the appropriate handler Called from HTTP::Server in server.cr
-
#process_request(search_path, context, controller_dispatch, head_request)
We split out the processing of the request for simplified injection of telemetry
-
#search_route(method, req_path, search_path, context : HTTP::Server::Context) : Tuple(Action, Bool) | Nil
Builds the internal representation of a route then searches static routes before checking the matcher
Constructor Detail
Instance Method Detail
Adds a route handler to the system Determines if routes are static or require decomposition and stores them appropriately
Routes requests to the appropriate handler Called from HTTP::Server in server.cr
We split out the processing of the request for simplified injection of telemetry
Builds the internal representation of a route then searches static routes before checking the matcher