From 3050b75f0ae937c159fbf943fe1aefaf0e059669 Mon Sep 17 00:00:00 2001 From: Serdar Dogruyol Date: Wed, 6 Sep 2017 23:58:55 +0300 Subject: [PATCH] Tidy up config properties --- src/kemal/config.cr | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 31be2b9..b3c54f4 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -11,16 +11,17 @@ module Kemal WEBSOCKET_HANDLERS = [] of HTTP::WebSocketHandler FILTER_HANDLERS = [] of HTTP::Handler ERROR_HANDLERS = {} of Int32 => HTTP::Server::Context, Exception -> String + {% if flag?(:without_openssl) %} @ssl : Bool? {% else %} @ssl : OpenSSL::SSL::Context::Server? {% 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 + 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)? def initialize