Module Rack::Utils
In: 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

Constants

DEFAULT_SEP = /[&;] */n

Attributes

key_space_limit  [RW] 
multipart_part_limit  [RW] 
param_depth_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]