Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ response sequentially instead of waiting for the entire response::
``php://temp`` stream. You can control this behavior by using the ``buffer``
option: set it to ``true``/``false`` to enable/disable buffering, or to a
closure that should return the same based on the response headers it receives
as argument.
as an argument.

Canceling Responses
~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -1064,7 +1064,7 @@ method will yield a special chunk whose ``isTimeout()`` will return ``true``::

foreach ($client->stream($responses, 1.5) as $response => $chunk) {
if ($chunk->isTimeout()) {
// $response staled for more than 1.5 seconds
// $response stale for more than 1.5 seconds
}
}

Expand Down