lib/merb/merb_constants.rb in merb-0.3.4 vs lib/merb/merb_constants.rb in merb-0.3.7
- old
+ new
@@ -19,7 +19,32 @@
COOKIE_REGEXP = /\s*(.+)=(.*)\s*/.freeze
COOKIE_EXPIRED_TIME = Time.at(0).freeze
HOUR = 60*60
DAY = HOUR*24
WEEK = DAY*7
+ MULTIPART_REGEXP = /\Amultipart\/form-data.*boundary=\"?([^\";,]+)/n.freeze
+ HTTP_COOKIE = 'HTTP_COOKIE'.freeze
+ QUERY_STRING = 'QUERY_STRING'.freeze
+ APPLICATION_JSON = 'application/json'.freeze
+ TEXT_JSON = 'text/x-json'.freeze
+ APPLICATION_XML = 'application/xml'.freeze
+ TEXT_XML = 'text/xml'.freeze
+ UPCASE_CONTENT_TYPE = 'CONTENT_TYPE'.freeze
+ CONTENT_TYPE = "Content-Type".freeze
+ LAST_MODIFIED = "Last-Modified".freeze
+ SLASH = "/".freeze
+ REQUEST_METHOD = "REQUEST_METHOD".freeze
+ GET = "GET".freeze
+ POST = "POST".freeze
+ HEAD = "HEAD".freeze
+ CONTENT_LENGTH = "CONTENT_LENGTH".freeze
+ HTTP_X_FORWARDED_FOR = "HTTP_X_FORWARDED_FOR".freeze
+ HTTP_IF_MODIFIED_SINCE = "HTTP_IF_MODIFIED_SINCE".freeze
+ HTTP_IF_NONE_MATCH = "HTTP_IF_NONE_MATCH".freeze
+ UPLOAD_ID = 'upload_id'.freeze
+ PATH_INFO="PATH_INFO".freeze
+ SCRIPT_NAME="SCRIPT_NAME".freeze
+ REQUEST_URI='REQUEST_URI'.freeze
+ REQUEST_PATH='REQUEST_PATH'.freeze
+ REMOTE_ADDR="REMOTE_ADDR".freeze
end
-end
\ No newline at end of file
+end