Kemal::RouteHandler
Inherits HTTP::Handler < Reference < Object
Constants
INSTANCE = new
Constructors
new
SourceInstance methods
add_route(method : String, path : String, &handler : HTTP::Server::Context -> _)
Adds a given route to routing tree.
cached_routes
Sourcecall(context : HTTP::Server::Context)
Sourcelookup_route(verb : String, path : String)
Looks up the route from the Radix::Tree for the first time and caches to improve performance.
routes
Source