Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
8dd779ec
Commit
8dd779ec
authored
Dec 31, 2011
by
Igor Wiedler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[stream] Fix rst formatting
parent
73fe0b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/usage.rst
doc/usage.rst
+2
-2
No files found.
doc/usage.rst
View file @
8dd779ec
...
@@ -476,7 +476,7 @@ Streaming
...
@@ -476,7 +476,7 @@ Streaming
It's possible to create a streaming response, which is important in cases
It's possible to create a streaming response, which is important in cases
when you cannot buffer the data being sent.
when you cannot buffer the data being sent.
code-block:: php
..
code-block:: php
$app->get('/images/{file}', function ($file) use ($app) {
$app->get('/images/{file}', function ($file) use ($app) {
if (!file_exists(__DIR__.'/images/'.$file)) {
if (!file_exists(__DIR__.'/images/'.$file)) {
...
@@ -493,7 +493,7 @@ code-block:: php
...
@@ -493,7 +493,7 @@ code-block:: php
If you need to send chunks, make sure you call ``ob_flush`` and ``flush`` after
If you need to send chunks, make sure you call ``ob_flush`` and ``flush`` after
every chunk.
every chunk.
code-block:: php
..
code-block:: php
$stream = function () {
$stream = function () {
$fh = fopen('http://www.example.com/', 'rb');
$fh = fopen('http://www.example.com/', 'rb');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment