class
Grip::Parsers::ParameterBox
- Grip::Parsers::ParameterBox
- Reference
- Object
Defined in:
grip/parsers/parameter_box.crConstant Summary
-
APPLICATION_JSON =
"application/json" -
EMPTY_FILE =
{} of String => FileUpload -
EMPTY_JSON =
{} of String => AllParamTypes -
EMPTY_PARAMS =
HTTP::Params.new({} of String => Array(String)) -
EMPTY_STRING_HASH =
{} of String => String -
Use class-level empty instances to avoid allocations
-
FLAG_BODY =
4_u8 -
FLAG_FILE =
16_u8 -
FLAG_JSON =
8_u8 -
FLAG_QUERY =
2_u8 -
FLAG_URL =
1_u8 -
MULTIPART_FORM =
"multipart/form-data" -
URL_ENCODED_FORM =
"application/x-www-form-urlencoded"
Constructors
Instance Method Summary
- #body : HTTP::Params
- #file : Hash(String, FileUpload)
- #json : Hash(String, AllParamTypes)
- #query : HTTP::Params
-
#url : Hash(String, String)
URL params - most frequently accessed, optimize heavily
Constructor Detail
Instance Method Detail
URL params - most frequently accessed, optimize heavily