From cd046bf27872db047ecaf2b6d2f795b447d256a8 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 14 Nov 2012 19:03:51 +0100 Subject: added documentation for parameter constants --- lib/zero/request/parameter.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/zero/request/parameter.rb b/lib/zero/request/parameter.rb index 592c620..13e92ea 100644 --- a/lib/zero/request/parameter.rb +++ b/lib/zero/request/parameter.rb @@ -8,9 +8,13 @@ module Zero # This class holds all parameters available in the rack environment, split # on query and payload parameters. class Parameter + # they key for the query string ENV_KEY_QUERY = 'QUERY_STRING' + # the key for the payload ENV_KEY_PAYLOAD = 'rack.input' + # the key for the content type ENV_KEY_CONTENT_TYPE = 'CONTENT_TYPE' + # all content types which used for using the body as a parameter input PAYLOAD_CONTENT_TYPES = [ 'application/x-www-form-urlencoded', 'multipart/form-data' -- cgit v1.2.3-70-g09d2