summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-14 19:03:51 +0100
committerGibheer <gibheer@gmail.com>2012-11-14 19:03:51 +0100
commitcd046bf27872db047ecaf2b6d2f795b447d256a8 (patch)
treed5c0df780dfee254e3e16c913468c0afd54b154a
parent042ed10a6dfde04903b24a21b70adc2ff38e4722 (diff)
added documentation for parameter constants
-rw-r--r--lib/zero/request/parameter.rb4
1 files changed, 4 insertions, 0 deletions
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'