mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Format
This commit is contained in:
parent
1d8908e673
commit
ac56973663
2 changed files with 5 additions and 6 deletions
|
@ -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?
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue