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

View File

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