class

Kemal::RouteHandler

Inherits HTTP::Handler < Reference < Object

Constants

INSTANCE = new

Constructors

Instance methods

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

Adds a given route to routing tree.

Source
cached_routes
Source
cached_routes=(cached_routes : Kemal::LRUCache(String, Radix::Result(Kemal::Route)))
Source
call(context : HTTP::Server::Context)
Source
lookup_route(verb : String, path : String)

Looks up the route from the Radix::Tree for the first time and caches to improve performance.

Source
routes
Source
routes=(routes : Radix::Tree(Kemal::Route))
Source