aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/response.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Ensure Cache-Control max-age is an integerJeremy Kemper2009-12-021-1/+1
|
* Response#write is defined twice (this is why -w is good)Joshua Peek2009-12-011-6/+0
|
* Response#cache_control is defined laterJoshua Peek2009-12-011-1/+0
|
* Fixes expires_now and cleans things up a bitYehuda Katz2009-10-261-0/+2
|
* SessionRestoreError belongs in ADJoshua Peek2009-09-231-4/+4
|
* ActionController::Metal can be a middlewareYehuda Katz + Carl Lerche2009-08-251-1/+4
|
* More perf work:Yehuda Katz2009-08-111-31/+53
| | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
* Got overhead down from 127 to 85. All tests pass:Yehuda Katz2009-08-111-36/+56
| | | | | | | | | | | | | | | | | | | | | | | | | * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string.
* Remove legacy processing and content_lengthYehuda Katz2009-08-021-40/+10
| | | | | | | | | | | * convert_content_type! is handled by assign_default_content_type_and_charset! * set_content_length! should be handled by the endpoint server. Otherwise each middleware that modifies the body has to do the expensive work of recalculating content_length. * convert_language! appears to be legacy. There are no tests for this * convert_cookies! should be handled by the new HeaderHash in Rack * Use an integer for .status's internal representation to avoid needing to do String manipulation just to find out the status
* Update cache_control to be a Hash of options that is used to build the header.Yehuda Katz2009-08-021-5/+19
| | | | * Significantly simplifies setting and modifying cache control in other areas
* Finish making things pass with updated internal content_type semanticsYehuda Katz + Carl Lerche2009-06-151-45/+11
|
* Don't want Rack's Content-Type default header thoughJeremy Kemper2009-05-241-2/+3
|