class Crack::Handler::Block

Overview

This handler is a wrapper around a block. This is used to allow a route to be configured with only a block but still provides the call_next method so this block can be chained in the callstack.

Defined in:

crack/block.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new(block : HTTP::Server::Context -> String) #

[View source]

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]