class Crack::Handler::Params
- Crack::Handler::Params
- Crack::Handler::Base
- Reference
- Object
Overview
The Params handler will parse parameters from a URL, a form post or a JSON post and provide them in the context params hash. This unifies access to parameters into one place to simplify access to them. Note: other params from the router will be handled in the router handler instead of here. This removes a dependency on the router in case it is replaced or not needed.
Defined in:
crack/params.crConstant Summary
-
APPLICATION_JSON =
"application/json"
-
MULTIPART_FORM =
"multipart/form-data"
-
URL_ENCODED_FORM =
"application/x-www-form-urlencoded"
Class Method Summary
-
.instance
class method to return a singleton instance of this Controller
Instance Method Summary
-
#call(context)
Execution of this handler.
- #parse(context)
- #parse_body(context)
- #parse_json(context)
- #parse_multipart(context)
- #parse_query(context)