diff --git a/src/kemal/config.cr b/src/kemal/config.cr index 0ede00f..df3e6eb 100644 --- a/src/kemal/config.cr +++ b/src/kemal/config.cr @@ -1,5 +1,3 @@ -require "yaml" - module Kemal class Config INSTANCE = Config.new diff --git a/src/kemal/param_parser.cr b/src/kemal/param_parser.cr index 9cd957a..0af7f7f 100644 --- a/src/kemal/param_parser.cr +++ b/src/kemal/param_parser.cr @@ -3,7 +3,6 @@ require "json" # ParamParser parses the request contents including query_params and body # and converts them into a params hash which you can within the environment # context. - alias AllParamTypes = Nil | String | Int64 | Float64 | Bool | Hash(String, JSON::Type) | Array(JSON::Type) class Kemal::ParamParser diff --git a/src/kemal/route_handler.cr b/src/kemal/route_handler.cr index e180762..1646c11 100644 --- a/src/kemal/route_handler.cr +++ b/src/kemal/route_handler.cr @@ -3,7 +3,6 @@ require "radix" # Kemal::RouteHandler is the main handler which handles all the HTTP requests. Routing, parsing, rendering e.g # are done in this handler. - class Kemal::RouteHandler < HTTP::Handler INSTANCE = new diff --git a/src/kemal/websocket_handler.cr b/src/kemal/websocket_handler.cr index 41ba6d2..d5ac49e 100644 --- a/src/kemal/websocket_handler.cr +++ b/src/kemal/websocket_handler.cr @@ -1,6 +1,5 @@ # Kemal::WebSocketHandler is used for each define WebSocket route. # For each WebSocket route a new handler is created and registered to global handlers. - class Kemal::WebSocketHandler < HTTP::WebSocketHandler def initialize(@path, &@proc : HTTP::WebSocket ->) Kemal.config.add_ws_handler self