Module: Rack

Defined in:
lib/rack/version.rb,
lib/rack.rb,
lib/rack/etag.rb,
lib/rack/file.rb,
lib/rack/head.rb,
lib/rack/lint.rb,
lib/rack/lock.rb,
lib/rack/mime.rb,
lib/rack/mock.rb,
lib/rack/files.rb,
lib/rack/utils.rb,
lib/rack/config.rb,
lib/rack/events.rb,
lib/rack/logger.rb,
lib/rack/server.rb,
lib/rack/static.rb,
lib/rack/urlmap.rb,
lib/rack/builder.rb,
lib/rack/cascade.rb,
lib/rack/chunked.rb,
lib/rack/handler.rb,
lib/rack/lobster.rb,
lib/rack/request.rb,
lib/rack/runtime.rb,
lib/rack/deflater.rb,
lib/rack/reloader.rb,
lib/rack/response.rb,
lib/rack/sendfile.rb,
lib/rack/directory.rb,
lib/rack/multipart.rb,
lib/rack/recursive.rb,
lib/rack/auth/basic.rb,
lib/rack/body_proxy.rb,
lib/rack/media_type.rb,
lib/rack/handler/cgi.rb,
lib/rack/null_logger.rb,
lib/rack/show_status.rb,
lib/rack/content_type.rb,
lib/rack/handler/lsws.rb,
lib/rack/handler/scgi.rb,
lib/rack/handler/thin.rb,
lib/rack/query_parser.rb,
lib/rack/session/pool.rb,
lib/rack/common_logger.rb,
lib/rack/content_length.rb,
lib/rack/session/cookie.rb,
lib/rack/auth/digest/md5.rb,
lib/rack/conditional_get.rb,
lib/rack/core_ext/regexp.rb,
lib/rack/method_override.rb,
lib/rack/show_exceptions.rb,
lib/rack/tempfile_reaper.rb,
lib/rack/multipart/parser.rb,
lib/rack/rewindable_input.rb,
lib/rack/session/memcache.rb,
lib/rack/auth/digest/nonce.rb,
lib/rack/auth/digest/params.rb,
lib/rack/auth/digest/request.rb,
lib/rack/multipart/generator.rb,
lib/rack/session/abstract/id.rb,
lib/rack/auth/abstract/handler.rb,
lib/rack/auth/abstract/request.rb,
lib/rack/multipart/uploaded_file.rb,
lib/rack/handler/webrick.rb,
lib/rack/handler/fastcgi.rb

Overview

Regexp has `match?` since Ruby 2.4 so to support Ruby < 2.4 we need to define this method

Defined Under Namespace

Modules: Auth, Handler, Mime, Multipart, RegexpExtensions, Session, Utils Classes: BodyProxy, Builder, Cascade, Chunked, CommonLogger, ConditionalGet, Config, ContentLength, ContentType, Deflater, Directory, ETag, Events, Files, ForwardRequest, Head, Lint, Lobster, Lock, Logger, MediaType, MethodOverride, MockRequest, MockResponse, NullLogger, QueryParser, Recursive, Reloader, Request, Response, RewindableInput, Runtime, Sendfile, Server, ShowExceptions, ShowStatus, Static, TempfileReaper, URLMap

Constant Summary collapse

HTTP_HOST =
'HTTP_HOST'
HTTP_PORT =
'HTTP_PORT'
HTTP_VERSION =
'HTTP_VERSION'
HTTPS =
'HTTPS'
PATH_INFO =
'PATH_INFO'
REQUEST_METHOD =
'REQUEST_METHOD'
REQUEST_PATH =
'REQUEST_PATH'
SCRIPT_NAME =
'SCRIPT_NAME'
QUERY_STRING =
'QUERY_STRING'
SERVER_PROTOCOL =
'SERVER_PROTOCOL'
SERVER_NAME =
'SERVER_NAME'
SERVER_PORT =
'SERVER_PORT'
CACHE_CONTROL =
'Cache-Control'
EXPIRES =
'Expires'
CONTENT_LENGTH =
'Content-Length'
CONTENT_TYPE =
'Content-Type'
'Set-Cookie'
TRANSFER_ENCODING =
'Transfer-Encoding'
'HTTP_COOKIE'
ETAG =
'ETag'
GET =

HTTP method verbs

'GET'
POST =
'POST'
PUT =
'PUT'
PATCH =
'PATCH'
DELETE =
'DELETE'
HEAD =
'HEAD'
OPTIONS =
'OPTIONS'
'LINK'
'UNLINK'
TRACE =
'TRACE'
RACK_VERSION =

Rack environment variables

'rack.version'
RACK_TEMPFILES =
'rack.tempfiles'
RACK_ERRORS =
'rack.errors'
RACK_LOGGER =
'rack.logger'
RACK_INPUT =
'rack.input'
RACK_SESSION =
'rack.session'
RACK_SESSION_OPTIONS =
'rack.session.options'
RACK_SHOWSTATUS_DETAIL =
'rack.showstatus.detail'
RACK_MULTITHREAD =
'rack.multithread'
RACK_MULTIPROCESS =
'rack.multiprocess'
RACK_RUNONCE =
'rack.run_once'
RACK_URL_SCHEME =
'rack.url_scheme'
RACK_HIJACK =
'rack.hijack'
RACK_IS_HIJACK =
'rack.hijack?'
RACK_HIJACK_IO =
'rack.hijack_io'
RACK_RECURSIVE_INCLUDE =
'rack.recursive.include'
RACK_MULTIPART_BUFFER_SIZE =
'rack.multipart.buffer_size'
RACK_MULTIPART_TEMPFILE_FACTORY =
'rack.multipart.tempfile_factory'
RACK_REQUEST_FORM_INPUT =
'rack.request.form_input'
RACK_REQUEST_FORM_HASH =
'rack.request.form_hash'
RACK_REQUEST_FORM_VARS =
'rack.request.form_vars'
'rack.request.cookie_hash'
'rack.request.cookie_string'
RACK_REQUEST_QUERY_HASH =
'rack.request.query_hash'
RACK_REQUEST_QUERY_STRING =
'rack.request.query_string'
RACK_METHODOVERRIDE_ORIGINAL_METHOD =
'rack.methodoverride.original_method'
'rack.session.unpacked_cookie_data'
File =
Files
VERSION =

The Rack protocol version number implemented.

[1, 3]
RELEASE =
"2.2.4"

Class Method Summary collapse

Class Method Details

.releaseObject

Return the Rack release as a dotted string.



26
27
28
# File 'lib/rack/version.rb', line 26

def self.release
  RELEASE
end

.versionObject

Return the Rack protocol version as a dotted string.



19
20
21
# File 'lib/rack/version.rb', line 19

def self.version
  VERSION.join(".")
end