Don't require yaml

This commit is contained in:
Sdogruyol 2016-02-10 22:02:10 +02:00
parent 9de66e2a60
commit ffc3d6d224
4 changed files with 0 additions and 5 deletions

View File

@ -1,5 +1,3 @@
require "yaml"
module Kemal
class Config
INSTANCE = Config.new

View File

@ -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

View File

@ -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

View File

@ -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