abstract class Telecr::Core::Middleware

Overview

Abstract base class that all middleware must inherit from

Direct Known Subclasses

Defined in:

core/composer.cr
core/middleware.cr

Instance Method Summary

Instance Method Detail

abstract def call(ctx : Context, next_mw : Context -> ) #

Every middleware must implement this method

@param ctx [Context] The current context @param next_mw [Proc(Context ->)] The next middleware in chain @return [Any] Result from the rest of the chain


[View source]