class Kemal::Handler

Overview

Kemal::Handler is an implementation of HTTP::Handler.

It includes HandlerInterface to add the methods only, only_match?, exclude, exclude_match?. These methods are useful for the conditional execution of custom handlers .

Included Modules

Defined in:

kemal/handler.cr

Instance methods inherited from module Kemal::HandlerInterface

call(context : HTTP::Server::Context) call, exclude_match?(env : HTTP::Server::Context) exclude_match?, only_match?(env : HTTP::Server::Context) only_match?

Macros inherited from module Kemal::HandlerInterface

exclude(paths, method = "GET") exclude, only(paths, method = "GET") only