Module: Gin::Constants
- Included in:
- App, Controller, Request, Response, Router::Route
- Defined in:
- lib/gin/constants.rb
Constant Summary collapse
- EPOCH =
Time.at(0)
- FWD_FOR =
Rack env constants
'HTTP_X_FORWARDED_FOR'.freeze
- FWD_HOST =
'HTTP_X_FORWARDED_HOST'.freeze
- REMOTE_ADDR =
'REMOTE_ADDR'.freeze
- REMOTE_USER =
'REMOTE_USER'.freeze
- HTTP_VERSION =
'HTTP_VERSION'.freeze
- SERVER_NAME =
'SERVER_NAME'.freeze
- SERVER_PORT =
'SERVER_PORT'.freeze
- REQ_METHOD =
'REQUEST_METHOD'.freeze
- PATH_INFO =
'PATH_INFO'.freeze
- QUERY_STRING =
'QUERY_STRING'.freeze
- IF_MATCH =
'HTTP_IF_MATCH'.freeze
- IF_NONE_MATCH =
'HTTP_IF_NONE_MATCH'.freeze
- IF_MOD_SINCE =
'HTTP_IF_MODIFIED_SINCE'.freeze
- IF_UNMOD_SINCE =
'HTTP_IF_UNMODIFIED_SINCE'.freeze
- RACK_INPUT =
'rack.input'.freeze
- ASYNC_CALLBACK =
'async.callback'.freeze
- ETAG =
Rack response header constants
'ETag'.freeze
- CNT_LENGTH =
'Content-Length'.freeze
- CNT_TYPE =
'Content-Type'.freeze
- CNT_DISPOSITION =
'Content-Disposition'.freeze
- LOCATION =
'Location'.freeze
- LAST_MOD =
'Last-Modified'.freeze
- CACHE_CTRL =
'Cache-Control'.freeze
- EXPIRES =
'Expires'.freeze
- PRAGMA =
'Pragma'.freeze
- HOST_NAME =
'Host'.freeze
- GIN_APP =
Gin env constants
'gin.app'.freeze
- GIN_STACK =
'gin.stack'.freeze
- GIN_ROUTE =
'gin.http_route'.freeze
- GIN_PATH_PARAMS =
'gin.path_query_hash'.freeze
- GIN_TARGET =
'gin.target'.freeze
- GIN_CTRL =
'gin.controller'.freeze
- GIN_STATIC =
'gin.static'.freeze
- GIN_RELOADED =
'gin.reloaded'.freeze
- GIN_ERRORS =
'gin.errors'.freeze
- GIN_TIMESTAMP =
'gin.timestamp'.freeze
- GIN_TEMPLATES =
'gin.templates'.freeze
- ENV_DEV =
Environment names
"development".freeze
- ENV_TEST =
"test".freeze
- ENV_STAGE =
"staging".freeze
- ENV_PROD =
"production".freeze
- SESSION_SECRET =
Other
"%064x" % Kernel.rand(2**256-1)