Closed RainbowZephyr closed 7 months ago
At the point where the block executes, kemal has already setup all handlers (calling config.setup
).
Thus, adding handlers afterwards in the run
block won't have any effect.
It should be possible before calling Kemal.run
, though.
Kemal.config.add_handler(MyHandler.new)
Kemal.run do |config|
server = config.server.not_nil!
end
This can be closed it seems.
Hello, This is not an issue per se, I just wanted to know if it is possible to add handlers programmatically during the server initialization. I tried doing the following but it was not working:
Am I initializing the handler wrong?
Thanks in advance