class Kemal::RouteHandler


Kemal::RouteHandler is the main handler which handles all the HTTP requests. Routing, parsing, rendering e.g are done in this handler.

Included Modules

Defined in:

Constant Summary


Class Method Summary

Instance Method Summary

Class Method Detail

def #

Instance Method Detail

def add_route(method, path, &handler : HTTP::Server::Context -> _) #

Adds a given route to routing tree. As an exception each GET route additionaly defines a corresponding HEAD route.

def call(context) #

def lookup_route(verb, path) #

Check if a route is defined and returns the lookup

def tree : Radix::Tree(Kemal::Route) #

def tree=(tree) #