Skip to content

Commit 0392085

Browse files
committed
minor #17749 Add note about ResponseInterface::toStream() (henrikac)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- Add note about `ResponseInterface::toStream()` The docs for `HttpClient` mentions that [Symfony\Contracts\HttpClient\ResponseInterface](https://github.com/symfony/http-client-contracts/blob/main/ResponseInterface.php) provides a method `toStream` but looking at the source code one can see that this is not the case. This PR removes the mention of `Symfony\Contracts\HttpClient\ResponseInterface::toStream` from the docs. Commits ------- e84e3e8 add note about ->toStream()
2 parents ee6c321 + e84e3e8 commit 0392085

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

http_client.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,10 @@ following methods::
10131013
// returns detailed logs about the requests and responses of the HTTP transaction
10141014
$httpLogs = $response->getInfo('debug');
10151015

1016+
.. note::
1017+
1018+
``$response->toStream()`` is part of :class:`Symfony\\Component\\HttpClient\\Response\\StreamableInterface`.
1019+
10161020
.. note::
10171021

10181022
``$response->getInfo()`` is non-blocking: it returns *live* information

0 commit comments

Comments
 (0)