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(key : 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 
- 
        #search_route(context : HTTP::Server::Context) : Tuple(Action, Bool) | Nil
        
          Builds the internal representation of a route then searches static routes before checking the radix tree 
Constructor Detail
Instance Method Detail
Adds a route handler to the system Determines if routes are static or require decomposition and stores them appropriately
        
        def call(context : HTTP::Server::Context)
        #
      
      
        Routes requests to the appropriate handler Called from HTTP::Server in server.cr
Builds the internal representation of a route then searches static routes before checking the radix tree