aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/streaming.rb
Commit message (Collapse)AuthorAgeFilesLines
* Indent protected methodsŁukasz Strzałkowski2013-08-251-18/+18
| | | | [ci skip]
* Load AV::Layouts dynamicly via railtiesŁukasz Strzałkowski2013-08-251-2/+0
|
* Move rendering from AP to AVŁukasz Strzałkowski2013-08-251-1/+1
|
* Model.scoped is deprecated in favour of Model.allAkira Matsuda2013-01-021-4/+4
|
* Cleans and removes useless 'Examples' tag [ci skip]Alvaro Pereyra2012-12-011-2/+0
|
* Multiple changes to 1,9 hash syntaxAvnerCohen2012-10-271-3/+3
|
* ActionDispatch::ClosedError no longer is raised. See d142572567 for more info.Nick Howard2012-06-301-3/+0
|
* Use <tt>Foo::Bar</tt> instead of +Foo::Bar+Mark Rushakof2012-04-271-3/+3
| | | | | | | | The latter doesn't render as code in HTML output. Regex used in Rubymine to locate the latter form: (\+)(:*\w+:(?::|\w)+)(\+)
* Remove unnecessary in HTML 5 type attribute with default valueAndrey A.I. Sitnik2012-04-051-1/+1
|
* Move render_to_body logic to return a spaced string to AC::RenderingCarlos Antonio da Silva2012-01-171-1/+1
| | | | | | | | | | | This seems to be required only when calling render :partial with an empty collection from a controller. This call happens to return no content, letting the response body empty, which means to Rails that it should go on and try to find a template to render based on the current action name, thus failing hard. Although tests keep all green, we need to check a better way to fix this.
* remove File#to_path aliasVasiliy Ermolovich2011-12-251-2/+1
|
* Remove stream at the class level.José Valim2011-07-061-38/+5
| | | | | | This is because only template rendering works with streaming. Setting it at the class level was also changing the behavior of JSON and XML responses, closes #1337.
* Remove trailing white-spacesGuillermo Iguaran2011-06-051-1/+0
|
* Update CHANGELOG.José Valim2011-05-031-1/+1
|
* made a copy-edit pass on the streaming RDocXavier Noria2011-05-021-33/+35
|
* Streaming docs.José Valim2011-05-011-1/+201
|
* Introduce view renderer.José Valim2011-05-011-1/+1
|
* Do not stream on HTTP/1.0.José Valim2011-04-191-3/+7
|
* Body... wanna *stream* my body? Body... such a thrill my body!José Valim2011-04-181-0/+57
| | | | | Added stream as class level method to make it explicit when to stream. Render also accepts :stream as option.
* Rename it to DataStreaming.José Valim2011-04-181-145/+0
|
* `render :text => proc { ... }` is no longer supported.John Firebaugh2010-10-041-4/+0
|
* Cleanup deprecation warnings in Action ControllerCarlos Antonio da Silva2010-09-061-8/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Add missing require to metal/streaming.rbJosé Valim2010-07-201-0/+2
|
* Makes send_file work again by deferring to Rack::Sendfile. Carlhuda2010-02-231-38/+19
| | | | | | | | | | * Add the Rack::Sendfile middleware * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). * Add Railties tests to confirm that these work * Remove the :stream, :buffer_size, and :x_senfile default options to send_file * Change the log subscriber to always say "Sent file" * Add deprecation warnings for options that are now no-ops Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
* Fix streaming by having it create a File object, which can be handled by ↵Carlhuda2010-02-231-14/+6
| | | | Rack servers as appropriate
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-131-4/+0
|
* Rename the RenderingController module to just plain RenderingDavid Heinemeier Hansson2009-12-201-1/+1
|
* String#bytesize is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-2/+0
|
* Got overhead down from 127 to 85. All tests pass:Yehuda Katz2009-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Renamed presenter to renderer, added some documentation and defined its API.José Valim2009-08-071-1/+1
|
* Rename /base to /metal and make base.rb and metal.rb top-level to reflect ↵Yehuda Katz2009-08-061-0/+187
their module locations