There's no documentation for this item.
| Constants | |
|---|---|
| CONTENT_ |
|
| CRLF | |
| EOL | |
| FILENAME_ |
|
| METHODS | |
| NAME_ |
|
| Public Attributes | |
|---|---|
| env | |
| session | |
| Public Methods | |
|---|---|
| accept | |
| accept_ |
|
| accept_ |
|
| accept_ |
|
| action | |
| ajax? | Alias for #xml_http_request? |
| cache_ |
|
| connection | |
| content_ |
|
| content_ |
|
| controller_ |
|
| controller_ |
|
| cookies | |
| domain | returns the full domain name without the port number. |
| escape | Escapes s for use in a URL. |
| gateway | |
| host | returns the full hostname including port |
| host | |
| keep_ |
|
| method | |
| new | |
| normalize_ |
|
| params | |
| parse_ |
|
| path | Returns the uri without the query string. Strips trailing ’/’ and reduces duplicate ’/’ to a single ’/’ |
| path_ |
returns the PATH_INFO |
| port | returns the port the server is running on |
| protocol | returns either ‘https://’ or ‘http://’ depending on the HTTPS header |
| query_ |
parses a query string or the payload of a POST request into the params hash. So for example: /foo?bar=nik&post[title]=heya&post[body]=whatever parses into: {:bar => ‘nik’, :post => {:title => ‘heya’, :body => ‘whatever’}} |
| query_ |
|
| raw_ |
|
| referer | returns the request HTTP_REFERER. |
| remote_ |
returns the remote IP address if it can find it. |
| route | |
| route_ |
|
| route_ |
|
| script_ |
|
| server_ |
|
| server_ |
|
| ssl? | returns true if the request is an SSL request |
| subdomains | returns an array of all the subdomain parts of the host. |
| unescape | Unescapes a string (i.e., reverse URL escaping). |
| uri | returns he request uri. |
| user_ |
|
| version | |
| xhr? | Alias for #xml_http_request? |
| xml_ |
Returns true if the request is an Ajax request. |
| Private Methods | |
|---|---|
| body_ |
|
| body_ |
A hash of parameters passed in the body of the request. |
| json_ |
|
| multipart_ |
|
| query_ |
A hash of parameters passed from the URL like ?blah=hello |
| route_ |
returns two objects, route_index and route_params |
| xml_ |
|
<code/>and<pre/>for code samples.