class Tourmaline::Dispatcher
- Tourmaline::Dispatcher
- Reference
- Object
Overview
The Dispatcher is responsible for dispatching requests to the appropria
Defined in:
tourmaline/dispatcher.crConstructors
Instance Method Summary
- #event_handlers : Hash(UpdateAction, Array(EventHandlerType))
- #middleware : Array(Middleware)
- #on(*actions : UpdateAction, &block : Context -> )
- #process(update : Update)
- #register(handler : EventHandler)
- #use(*middlewares : Middleware)
- #use(*middlewares : Middleware.class)