LF::Router
Inherits HTTP::Handler < Reference < Object
Constructors
new
SourceInstance methods
add(path : String, methods : Set(String) = Set {"GET"}, &handler : HTTP::Server::Context, Hash(String, String) -> Nil)
Add a route with handler
Add a route with handler (non-block version)
call(context : HTTP::Server::Context)
SourceConvenience method for DELETE routes
Convenience method for GET routes
Convenience method for PATCH routes
Convenience method for POST routes