class Grip::Routers::Http
- Grip::Routers::Http
- Grip::Routers::Base
- Reference
- Object
Defined in:
grip/routers/http.crConstant Summary
-
CACHE_LIMIT =
1024
Constructors
Instance Method Summary
- #add_route(method : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Void
- #cache : Hash(String, Radix::Result(Route))
- #cache=(cache : Hash(String, Radix::Result(Route)))
- #call(context : HTTP::Server::Context)
- #find_route(verb : String, path : String) : Radix::Result(Route)
- #routes : Radix::Tree(Route)
- #routes=(routes : Radix::Tree(Route))
Instance methods inherited from class Grip::Routers::Base
add_route(method : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Void
add_route,
call(context : HTTP::Server::Context)
call,
find_route(verb : String, path : String) : Radix::Result(Route)
find_route
Constructor Detail
Instance Method Detail
def add_route(method : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Void
#