@@ -356,9 +356,9 @@ immediately instead of waiting to receive the response::
356
356
// getting the response headers waits until they arrive
357
357
$contentType = $response->getHeaders()['content-type'][0];
358
358
359
- // trying to get the response contents will block the execution until
360
- // the full response contents are received
361
- $contents = $response->getContent();
359
+ // trying to get the response content will block the execution until
360
+ // the full response content is received
361
+ $content = $response->getContent();
362
362
363
363
This component also supports :ref: `streaming responses <http-client-streaming-responses >`
364
364
for full asynchronous applications.
@@ -801,7 +801,7 @@ following methods::
801
801
// gets the response body as a string
802
802
$content = $response->getContent();
803
803
804
- // casts the response JSON contents to a PHP array
804
+ // casts the response JSON content to a PHP array
805
805
$content = $response->toArray();
806
806
807
807
// casts the response content to a PHP stream resource
@@ -841,7 +841,7 @@ response sequentially instead of waiting for the entire response::
841
841
throw new \Exception('...');
842
842
}
843
843
844
- // get the response contents in chunk and save them in a file
844
+ // get the response content in chunks and save them in a file
845
845
// response chunks implement Symfony\Contracts\HttpClient\ChunkInterface
846
846
$fileHandler = fopen('/ubuntu.iso', 'w');
847
847
foreach ($client->stream($response) as $chunk) {
0 commit comments