Custom middleware

This section is TODO:, you can help improving it.

  1. Write custom handlers which include HTTP::Handler module
  2. Pass a block to Onyx.listen and alter the handlers array. See actual handlers in the source code:
Onyx.listen do |handlers|

You can build your own custom server with absolutely custom middleware, see the Server from scratch tutorial.