Module: Gin::Constants

Included in:
App, Controller, Request, Response
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
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
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
GIN_STACK =

Gin env constants

'gin.stack'.freeze
GIN_ROUTE =
'gin.http_route'.freeze
GIN_PATH_PARAMS =
'gin.path_query_hash'.freeze
GIN_CTRL =
'gin.controller'.freeze
GIN_ACTION =
'gin.action'.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)