Module: Rack

Defined in:
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/utils.rb,
lib/rack/config.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/nulllogger.rb,
lib/rack/showstatus.rb,
lib/rack/handler/cgi.rb,
lib/rack/commonlogger.rb,
lib/rack/content_type.rb,
lib/rack/handler/lsws.rb,
lib/rack/handler/scgi.rb,
lib/rack/handler/thin.rb,
lib/rack/session/pool.rb,
lib/rack/conditionalget.rb,
lib/rack/content_length.rb,
lib/rack/methodoverride.rb,
lib/rack/session/cookie.rb,
lib/rack/showexceptions.rb,
lib/rack/auth/digest/md5.rb,
lib/rack/handler/mongrel.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/handler/evented_mongrel.rb,
lib/rack/multipart/uploaded_file.rb,
lib/rack/handler/swiftiplied_mongrel.rb,
lib/rack/handler/webrick.rb,
lib/rack/handler/fastcgi.rb

Overview

The Rack main module, serving as a namespace for all core Rack modules and classes.

All modules meant for use in your application are autoloaded here, so it should be enough just to require rack.rb in your code.

Defined Under Namespace

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

Constant Summary collapse

VERSION =

The Rack protocol version number implemented.

[1,3]
PATH_INFO =
'PATH_INFO'.freeze
REQUEST_METHOD =
'REQUEST_METHOD'.freeze
SCRIPT_NAME =
'SCRIPT_NAME'.freeze
QUERY_STRING =
'QUERY_STRING'.freeze
CACHE_CONTROL =
'Cache-Control'.freeze
CONTENT_LENGTH =
'Content-Length'.freeze
CONTENT_TYPE =
'Content-Type'.freeze
GET =
'GET'.freeze
HEAD =
'HEAD'.freeze

Class Method Summary collapse

Class Method Details

.releaseObject

Return the Rack release as a dotted string.



22
23
24
# File 'lib/rack.rb', line 22

def self.release
  "1.6.4"
end

.versionObject

Return the Rack protocol version as a dotted string.



17
18
19
# File 'lib/rack.rb', line 17

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