We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a85a7 commit 518caf8Copy full SHA for 518caf8
components/http_client.rst
@@ -344,6 +344,9 @@ following methods::
344
// casts the response JSON contents to a PHP array
345
$content = $response->toArray();
346
347
+ // casts the response content to a PHP stream resource
348
+ $content = $response->toStream();
349
+
350
// cancels the request/response
351
$response->cancel();
352
@@ -356,6 +359,10 @@ following methods::
356
359
// returns detailed logs about the requests and responses of the HTTP transaction
357
360
$httpLogs = $response->getInfo('debug');
358
361
362
+.. versionadded:: 4.4
363
364
+ The ``toStream()`` method was introduced in Symfony 4.4.
365
366
.. note::
367
368
``$response->getInfo()`` is non-blocking: it returns *live* information
0 commit comments