| Class | Merb::Request |
| In: |
lib/merb-core/dispatch/request.rb
|
| Parent: | Object |
| METHODS | = | %w{get post put delete head} |
| NAME_REGEX | = | /Content-Disposition:.* name="?([^\";]*)"?/ni.freeze |
| CONTENT_TYPE_REGEX | = | /Content-Type: (.*)\r\n/ni.freeze |
| FILENAME_REGEX | = | /Content-Disposition:.* filename="?([^\";]*)"?/ni.freeze |
| CRLF | = | "\r\n".freeze |
| EOL | = | CRLF |
| env | [RW] | def env def session def route_params |
| route_params | [RW] | def env def session def route_params |
| session | [RW] | def env def session def route_params |
| value<Array, Hash, ~to_s>: | The value for the query string. |
| prefix<~to_s>: | The prefix to add to the query string keys. |
| String: | The query string. |
If the value is a string, the prefix will be used as the key.
params_to_query_string(10, "page")
# => "page=10"
params_to_query_string({ :page => 10, :word => "ruby" })
# => "page=10&word=ruby"
params_to_query_string({ :page => 10, :word => "ruby" }, "search")
# => "search[page]=10&search[word]=ruby"
params_to_query_string([ "ice-cream", "cake" ], "shopping_list")
# => "shopping_list[]=ice-cream&shopping_list[]=cake"
| request<IO>: | The raw request. |
| boundary<String>: | The boundary string. |
| content_length<Fixnum>: | The length of the content. |
| ControllerExceptions::MultiPartParseError: | Failed to parse request. |
| Hash: | The parsed request. |
| String: | The URI without the query string. Strips trailing "/" and reduces duplicate "/" to a single "/". |