Module Rack::Utils
In: lib/rack.rb
lib/rack/utils.rb

Rack::Utils contains a grab-bag of useful methods for writing web applications adopted from all kinds of Ruby libraries.

Methods

Classes and Modules

Module Rack::Utils::OkJson
Class Rack::Utils::InvalidParameterError
Class Rack::Utils::ParameterTypeError

Constants

DEFAULT_SEP = /[&;] */n

Attributes

key_space_limit  [RW] 
multipart_part_limit  [RW] 

Public Instance methods

URI escapes. (CGI style space to +)

Like URI escaping, but with %20 instead of +. Strictly speaking this is true URI escaping.

Stolen from Mongrel, with some small modifications: Parses a query string by breaking it up at the ’&’ and ’;’ characters. You can also use this to parse cookies by changing the characters used in the second parameter (which defaults to ’&;’).

[Validate]