mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Tidy up config properties
This commit is contained in:
parent
731b2e0d5b
commit
3050b75f0a
1 changed files with 4 additions and 3 deletions
|
@ -11,16 +11,17 @@ module Kemal
|
||||||
WEBSOCKET_HANDLERS = [] of HTTP::WebSocketHandler
|
WEBSOCKET_HANDLERS = [] of HTTP::WebSocketHandler
|
||||||
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?
|
||||||
{% else %}
|
{% else %}
|
||||||
@ssl : OpenSSL::SSL::Context::Server?
|
@ssl : OpenSSL::SSL::Context::Server?
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
property host_binding, ssl, port, env, public_folder, logging, running,
|
|
||||||
always_rescue, serve_static : (Bool | Hash(String, Bool)), server, extra_options,
|
|
||||||
shutdown_message
|
|
||||||
getter custom_handler_position
|
getter custom_handler_position
|
||||||
|
property host_binding, ssl, port, env, public_folder, logging, running
|
||||||
|
property always_rescue, server, extra_options, shutdown_message
|
||||||
|
property serve_static : (Bool | Hash(String, Bool))
|
||||||
property static_headers : (HTTP::Server::Response, String, File::Stat -> Void)?
|
property static_headers : (HTTP::Server::Response, String, File::Stat -> Void)?
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
|
|
Loading…
Reference in a new issue