Skip to content

Commit

Permalink
Merge pull request #2422 from pvolok/note_in_streamedresponse
Browse files Browse the repository at this point in the history
Add note about buffering in StreamedResponse.
  • Loading branch information
weaverryan committed Apr 4, 2013
2 parents d9becd2 + 4ec843f commit 678daba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/http_foundation/introduction.rst
Expand Up @@ -387,6 +387,18 @@ represented by a PHP callable instead of a string::
}); });
$response->send(); $response->send();


.. note::

The ``flush()`` function does not flush bufferring. So if
``ob_start()`` has been called before or php.ini option
``output_buffering`` is not disabled (which is on some
installations by default), you have to call ``ob_flush()`` before
``flush()``.

But not only php can buffer output. Your web-server can also do
it. Even more, if you use fastcgi, buffering can't be disabled at
all.

Downloading Files Downloading Files
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~


Expand Down

0 comments on commit 678daba

Please sign in to comment.