Update instance types

This commit is contained in:
sdogruyol 2016-04-13 11:00:02 +03:00
parent 40ab34c63d
commit 2b9152ff79
4 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ require "colorize"
require "http"
class Kemal::CommonLogHandler < Kemal::BaseLogHandler
@handler : IO::FileDescriptor+
@handler : IO::FileDescriptor
getter handler
def initialize(@env)

View file

@ -2,7 +2,7 @@ module Kemal
class Config
INSTANCE = Config.new
HANDLERS = [] of HTTP::Handler
@ssl : OpenSSL::SSL::Context
@ssl : OpenSSL::SSL::Context?
property host_binding, ssl, port, env, public_folder, logging,
always_rescue, serve_static, run
@ -18,7 +18,7 @@ module Kemal
@error_handler = nil
@always_rescue = true
@run = false
@ssl = uninitialized OpenSSL::SSL::Context
@ssl = nil
end
def logger

View file

@ -9,7 +9,7 @@ class Kemal::ParamParser
URL_ENCODED_FORM = "application/x-www-form-urlencoded"
APPLICATION_JSON = "application/json"
def initialize(@request : HTTP::Request, @url_params : String? = nil , @override_method : String? = nil)
def initialize(@request : HTTP::Request)
@url = {} of String => String
@query = {} of String => String
@body = {} of String => String