aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/request.rb
Commit message (Collapse)AuthorAgeFilesLines
* Update/clean up AP documentation (rdoc)Jamis Buck2005-10-161-7/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Request#host_with_port to use the standard port when Rails is behind a ↵Nicholas Seckar2005-10-151-2/+10
| | | | | | proxy. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that Request#domain caused an exception if the domain header wasn't ↵David Heinemeier Hansson2005-09-201-1/+2
| | | | | | set in the original http request #1795 [Michael Koziarski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache relative_url_root for all webservers, not just Apache #2193 [skae]David Heinemeier Hansson2005-09-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2246 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that request.path never returns nil. Closes #1675Nicholas Seckar2005-09-111-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2206 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* AbstractRequest#domain returns nil when host is an ip address #2012 ↵Jamis Buck2005-09-021-0/+2
| | | | | | [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance with 5-30% through a series of Action Pack ↵David Heinemeier Hansson2005-07-231-23/+26
| | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make Request#subdomains handle "foo.foo.com" correctlyJamis Buck2005-07-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas ↵David Heinemeier Hansson2005-06-241-5/+8
| | | | | | Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved AbstractRequest documentation. Closes #1483.Jeremy Kemper2005-06-241-23/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :xhr => true/false option to verify so you can ensure that a request ↵David Heinemeier Hansson2005-06-211-1/+1
| | | | | | is coming from an Ajax call or not #1464 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed relative urls support for lighttpd #1048 [Nicholas ↵David Heinemeier Hansson2005-06-181-4/+13
| | | | | | Seckar/maznawak@nerim.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1450 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated redirect_to_path and redirect_to_url in favor of letting ↵David Heinemeier Hansson2005-05-221-19/+18
| | | | | | redirect_to do the right thing when passed either a path or url. Introduced r as a unified method for render (still under construction) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the post_format work with content-typeDavid Heinemeier Hansson2005-05-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1337 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the post_format work with content-typeDavid Heinemeier Hansson2005-05-201-2/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache relative_url_root and optimize path #1232 [skaen]David Heinemeier Hansson2005-05-191-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1325 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use X-POST_DATA_FORMAT instead of just POST_DATA_FORMATDavid Heinemeier Hansson2005-05-141-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-141-0/+21
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for web servers that use PATH_INFO instead of REQUEST_URI like ↵David Heinemeier Hansson2005-04-181-2/+10
| | | | | | IIS #1014 [BradG/Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#xml_http_request? (and an alias xhr?) to that'll return true ↵David Heinemeier Hansson2005-04-171-0/+8
| | | | | | when the request came from one of the Javascript helper methods (Ajax). This can be used to give one behavior for modern browsers supporting Ajax, another to old browsers #1127 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed .htaccess to allow dispatch.* to be called from a sub-directory as ↵David Heinemeier Hansson2005-03-201-2/+13
| | | | | | part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] Fixed routing and helpers to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the reliance on PATH_INFO as it was causing problems for caching and ↵David Heinemeier Hansson2005-03-141-5/+1
| | | | | | inhibited the new non-vhost support #822 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made path work for lighttpd again as it uses an empty string where Apache ↵David Heinemeier Hansson2005-03-011-1/+1
| | | | | | returns nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix request.path_info and clear up LoadingModule behavior #754 [Nicholas Seckar]David Heinemeier Hansson2005-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@817 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added PATH_INFO access from the request that allows urls like the following ↵David Heinemeier Hansson2005-02-271-1/+5
| | | | | | to be interpreted by rails: http://www.example.com/dispatcher.cgi/controller/action -- that makes it possible to use rails as a CGI under lighttpd and would also allow (for example) Rublog to be ported to rails without breaking existing links to Rublog-powered blogs. #728 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@802 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that proxy IPs do not follow all RFC1918 nets #251 [caleb@aei-tech.com]David Heinemeier Hansson2005-02-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@789 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed https handling on other ports than 443 [Alan Gano]David Heinemeier Hansson2005-02-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A hopefully more successful attempt at the Routing branch mergeDavid Heinemeier Hansson2005-02-151-3/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of routing merge.. investigating missing patchesDavid Heinemeier Hansson2005-02-151-12/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merged back the Routing branchDavid Heinemeier Hansson2005-02-151-3/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added @request.raw_post as a convenience access to ↵David Heinemeier Hansson2005-01-251-9/+17
| | | | | | @request.env['RAW_POST_DATA'] and fixed the patch problems with the session #534 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#port_string to get something like ":8080" back on 8080 and "" ↵David Heinemeier Hansson2004-12-181-7/+6
| | | | | | on 80 (or 443 with https). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#domain (returns string) and Request#subdomains (returns array).David Heinemeier Hansson2004-12-181-0/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@213 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added indifference to whether @headers["Content-Type"], ↵David Heinemeier Hansson2004-12-071-0/+4
| | | | | | @headers["Content-type"], or @headers["content-type"] is used. Added proper handling of HEAD requests, so that content isnt returned (Request#head? added as well) #277 [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@57 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed AbstractRequest#remote_ip for users going through proxies - Patch #228 ↵David Heinemeier Hansson2004-11-251-9/+9
| | | | | | [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@12 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Request#ssl? which is shorthand for @request.protocol == "https://"David Heinemeier Hansson2004-11-241-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+99
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de