Skip to content

v0.20.0

Compare
Choose a tag to compare
@sdogruyol sdogruyol released this 01 Jul 19:15
· 224 commits to master since this release
  • Crystal 0.23.0 support! As always, Kemal is compatible with the latest major release of Crystal πŸ’Ž
  • Great news everyone πŸŽ‰ All handlers are now completely customizable!. Use the default Kemal handlers or go wild, it's all up to you ⛏
# Don't forget to add `Kemal::RouteHandler::INSTANCE` or your routes won't work!
Kemal.config.handlers = [Kemal::InitHandler.new, YourHandler.new, Kemal::RouteHandler::INSTANCE]

You can also insert a handler into a specific position.

# This adds MyCustomHandler instance to 1 position. Be aware that the index starts from 0.
add_handler MyCustomHandler.new, 1
  • Updated Kilt to v0.4.0.
  • Make Route a Struct. This improves the performance of route declarations.