class
Telecr::Core::Composer
- Telecr::Core::Composer
- Reference
- Object
Overview
Composer runs a chain of middleware and finally executes a handler. Updated to be more efficient with Crystal's Proc handling.
Defined in:
core/composer.crConstructors
Instance Method Summary
- #clear
- #empty? : Bool
-
#run(ctx : Context, &final : Context -> )
Run the middleware chain and final handler
- #size : Int32
-
#use(middleware : Middleware)
Add middleware to the chain
-
#use(&block : Context, Context -> -> )
Overload to allow adding middleware as a block for quicker development
Constructor Detail
Instance Method Detail
Run the middleware chain and final handler
Overload to allow adding middleware as a block for quicker development