This commit is contained in:
Serdar Dogruyol 2017-10-06 14:59:53 +03:00
parent 1d8908e673
commit ac56973663
2 changed files with 5 additions and 6 deletions

View file

@ -6,11 +6,11 @@ module Kemal
# Kemal.config
# ```
class Config
INSTANCE = Config.new
HANDLERS = [] of HTTP::Handler
CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler)
FILTER_HANDLERS = [] of HTTP::Handler
ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String
INSTANCE = Config.new
HANDLERS = [] of HTTP::Handler
CUSTOM_HANDLERS = [] of Tuple(Nil | Int32, HTTP::Handler)
FILTER_HANDLERS = [] of HTTP::Handler
ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String
{% if flag?(:without_openssl) %}
@ssl : Bool?

View file

@ -46,7 +46,6 @@ end
#
# ```
# class MyCustomLogger < Kemal::BaseLogHandler
#
# def call(env)
# puts "I'm logging some custom stuff here."
# call_next(env) # => This calls the next handler