class Kemal::Route

Overview

Route is the main building block of Kemal. It takes 3 parameters: Method, path and a block to specify what action to be done if the route is matched.

Defined in:

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(method, path : String, &handler : HTTP::Server::Context -> _) #

Instance Method Detail

def handler : HTTP::Server::Context -> String #