aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
Commit message (Collapse)AuthorAgeFilesLines
* writing the new body can cause the response to be committed and theAaron Patterson2013-06-281-1/+3
| | | | | | | | request thread to return up the stack before the instance variable is assigned. Synchronize so that the ivar is assigned before the other thread can activate. fixes #10984
* Add propery docs to ActionDispatch::Response [ci skip]Steve Klabnik2013-05-301-3/+19
| | | | | | | | | | | | | After some discussion on Twitter with @skud, the documentation on ActionDispatch::Response is a bit sparse. This class is useful when you're writing tests, as often you want to assert various things about the response that's coming back. Better docs would make this easier for people new to testing in Rails. I only added some descriptions for various properties that were defined, and mostly just a sentence or two. Most of these things are familliar if you're working with HTTP, but some words is better than no words at all. Hopefully further commits will fix up things that aren't just documentation.
* extract no content response codes to a constantVipul A M2013-04-221-1/+2
|
* Removed an old require of an MD5 digest which is no longer used.wangjohn2013-02-151-1/+0
|
* Avoid to_sym callsSantiago Pastorino2013-02-131-1/+1
|
* generic pass before merging docrailsXavier Noria2013-01-261-5/+7
|
* Add documentation to ActionDispatch::ResponseMatthew Stopa2013-01-201-0/+7
|
* Fix typo introduced in 0004ca3aCarlos Antonio da Silva2013-01-161-1/+1
| | | | [ci skip]
* More documentation for ActionDispatch::ResponseMatthew Stopa2013-01-161-1/+3
| | | | [ci skip]
* Document ActionDispatch::Response#body methodMatthew Stopa2013-01-161-0/+1
|
* charset should not be appended for `head` responsesYves Senn2012-12-311-2/+6
| | | | | | | 1) Failure: test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]: Expected: "image/png" Actual: "image/png; charset=utf-8"
* Adding filter capability to ActionController logsFabrizio Regini2012-12-051-0/+1
|
* push header merge down to a private method so that live responses can have ↵Aaron Patterson2012-08-131-3/+7
| | | | their own header object
* introduce default_headers configEgor Homakov2012-08-091-0/+5
|
* load active_support/core_ext/module/delegation in active_support/railsXavier Noria2012-08-021-1/+0
|
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* header hash is duped before being sent up the rack stackAaron Patterson2012-07-291-12/+16
|
* ActionController::DataStreaming::FileBody doesn't respond to #close.Rafael Mendonça França2012-07-291-1/+1
|
* flushing output should write to the stream rather than mutating the response ↵Aaron Patterson2012-07-291-8/+12
| | | | object
* adding a buffered stream to the response objectAaron Patterson2012-07-291-2/+42
|
* initialize ivars, refactor recycle! to call initializeAaron Patterson2012-07-291-0/+2
|
* threads can wait on responses to be committedAaron Patterson2012-07-271-1/+24
|
* Fix comment in AD http responseAlexey Vakhov2012-04-131-1/+1
| | | | response in integration test accessible without @ via attr_reader
* Add ActionController::HTTPSantiago Pastorino2012-03-141-2/+7
| | | | | | More info http://edgeguides.rubyonrails.org/api_app.html [Carlos Antonio da Silva & Santiago Pastorino]
* remove check for string from request body setterlest2011-12-211-8/+1
| | | | it was required on ruby 1.8
* use Array#join so that file encoding doesn't impact returned string.Aaron Patterson2011-12-121-3/+3
| | | | Fixes #3957
* Use freezed string constant. Some string literals is used repeatedly.kennyj2011-12-081-8/+10
|
* Use default charset when we read content type without charset.kennyj2011-12-071-1/+1
|
* removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-241-23/+0
|
* Make :status an attr_reader to avoid unnecessary warning when replacing status=wycats2011-05-221-1/+2
|
* Fix previous commit by allowing a proc to be given as response_body. This is ↵José Valim2011-05-101-15/+41
| | | | deprecated and is going to be removed in future releases.
* Fix tests on 1.8 by explicitly checking for strings (which also improves ↵José Valim2011-04-201-1/+9
| | | | performance).
* Do not inherit from Rack::Response, remove a shit-ton of unused code.José Valim2011-04-191-53/+48
|
* Fix status initialization when custom status providedKrekoten' Marjan2010-10-181-2/+2
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Move ETag and ConditionalGet logic from AD::Response to the middleware stack.José Valim2010-10-031-1/+1
|
* @_etag is not used anywhere.José Valim2010-09-291-2/+0
|
* Initialize @_etag.Emilio Tagua2010-09-271-0/+1
|
* Expanded routing documentation with current best practicesJoost Baaij2010-08-291-10/+9
|
* Rely on set and delete cookie logic from rack.José Valim2010-05-181-33/+2
|
* Missing requireswycats2010-04-161-0/+1
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Set the body using the accessor for AD::Response introspection mode so it ↵Carlhuda2010-02-261-1/+2
| | | | gets wrapped in a []
* Make AD::Response correctly handle bodies that respond_to?(:to_path) as per ↵Carlhuda2010-02-231-0/+12
| | | | the Rack spec
* Fix a bunch of pending tests by providing an introspection mode for the ↵Carlhuda2010-02-191-15/+21
| | | | Response object that does up-front parsing of the headers to populate things like @etag
* Cookies middlewareJoshua Peek2010-01-161-1/+1
|
* Split ActionDispatch http in smaller chunks.José Valim2010-01-161-78/+2
|
* AD::StatusCodes support is now part of rackJoshua Peek2009-12-221-2/+2
|
* AC::Head now doesn't have an unfulfilled Rendering dependency, and instead ↵Yehuda Katz2009-12-201-1/+1
| | | | works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency)
* Pending tests for AD ResponseJoshua Peek2009-12-171-13/+12
|
* Fix warnings in AD::ResponseJoshua Peek2009-12-141-0/+3
|