diff options
author | Tore Darell <toredarell@gmail.com> | 2008-11-17 22:16:42 +0100 |
---|---|---|
committer | Tore Darell <toredarell@gmail.com> | 2008-11-17 22:16:42 +0100 |
commit | e1e0c126176cd7d3537c42df10e1ea6622a9ea14 (patch) | |
tree | b9d02e198c7c33cc943b7040df4bf09c43df7dae /railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt | |
parent | 74569f3e204b92e7c96a920b9bfde785323c61f4 (diff) | |
download | rails-e1e0c126176cd7d3537c42df10e1ea6622a9ea14.tar.gz rails-e1e0c126176cd7d3537c42df10e1ea6622a9ea14.tar.bz2 rails-e1e0c126176cd7d3537c42df10e1ea6622a9ea14.zip |
Fix various typos, add note about X-Sendfile to AC guide
Diffstat (limited to 'railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt')
-rw-r--r-- | railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt b/railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt index 07a8ec2574..846c24052d 100644 --- a/railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt +++ b/railties/doc/guides/source/actioncontroller_basics/request_response_objects.txt @@ -7,13 +7,13 @@ In every controller there are two accessor methods pointing to the request and t The request object contains a lot of useful information about the request coming in from the client. To get a full list of the available methods, refer to the link:http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html[API documentation]. Among the properties that you can access on this object are: * host - The hostname used for this request. - * domain - The hostname without the first segment (usually "www"). + * domain(n=2) - The hostname's first `n` segments, starting from the right (the TLD) * format - The content type requested by the client. * method - The HTTP method used for the request. - * get?, post?, put?, delete?, head? - Returns true if the HTTP method is get/post/put/delete/head. + * get?, post?, put?, delete?, head? - Returns true if the HTTP method is GET/POST/PUT/DELETE/HEAD. * headers - Returns a hash containing the headers associated with the request. * port - The port number (integer) used for the request. - * protocol - The protocol used for the request. + * protocol - Returns a string containing the prototol used plus "://", for example "http://" * query_string - The query string part of the URL - everything after "?". * remote_ip - The IP address of the client. * url - The entire URL used for the request. |