0
0
Fork 0

added documentation for parameter constants

This commit is contained in:
Gibheer 2012-11-14 19:03:51 +01:00
parent 042ed10a6d
commit cd046bf278
1 changed files with 4 additions and 0 deletions

View File

@ -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'