diff --git a/spec/param_parser_spec.cr b/spec/param_parser_spec.cr index ebd8da4..4c1992f 100644 --- a/spec/param_parser_spec.cr +++ b/spec/param_parser_spec.cr @@ -174,7 +174,7 @@ describe "ParamParser" do body_params.to_s.should eq("") json_params = Kemal::ParamParser.new(request).json - json_params.should eq({} of String => AllParamTypes) + json_params.should eq({} of String => Nil | String | Int64 | Float64 | Bool | Hash(String, JSON::Type) | Array(JSON::Type)) end end diff --git a/src/kemal/helpers/helpers.cr b/src/kemal/helpers/helpers.cr index 38c17b3..38409be 100644 --- a/src/kemal/helpers/helpers.cr +++ b/src/kemal/helpers/helpers.cr @@ -79,7 +79,7 @@ def gzip(status : Bool = false) add_handler HTTP::DeflateHandler.new if status end -# nodoc: +# :nodoc: struct UploadFile getter field : String getter data : IO::Delimited diff --git a/src/kemal/middleware/filters.cr b/src/kemal/middleware/filters.cr index a348b9e..7571b2c 100644 --- a/src/kemal/middleware/filters.cr +++ b/src/kemal/middleware/filters.cr @@ -70,6 +70,7 @@ module Kemal::Middleware end end + # :nodoc: class Block property block : HTTP::Server::Context -> String diff --git a/src/kemal/param_parser.cr b/src/kemal/param_parser.cr index 837aa5b..0340ba1 100644 --- a/src/kemal/param_parser.cr +++ b/src/kemal/param_parser.cr @@ -5,11 +5,11 @@ module Kemal # 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 ParamParser URL_ENCODED_FORM = "application/x-www-form-urlencoded" APPLICATION_JSON = "application/json" + # :nodoc: + alias AllParamTypes = Nil | String | Int64 | Float64 | Bool | Hash(String, JSON::Type) | Array(JSON::Type) def initialize(@request : HTTP::Request) @url = {} of String => String diff --git a/src/kemal/session.cr b/src/kemal/session.cr index 02e00b6..d1e1ccc 100644 --- a/src/kemal/session.cr +++ b/src/kemal/session.cr @@ -15,7 +15,7 @@ module Kemal # # Sessions are pruned hourly after 48 hours of inactivity. class Sessions - # Session Types are String, Integer, Float and Boolean + # :nodoc: alias SessionTypes = String | Int32 | Float64 | Bool # In-memory, ephemeral datastore only.