@@ -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.
@@ -833,7 +833,7 @@ following methods::
833
833
// gets the response body as a string
834
834
$content = $response->getContent();
835
835
836
- // casts the response JSON contents to a PHP array
836
+ // casts the response JSON content to a PHP array
837
837
$content = $response->toArray();
838
838
839
839
// casts the response content to a PHP stream resource
@@ -873,7 +873,7 @@ response sequentially instead of waiting for the entire response::
873
873
throw new \Exception('...');
874
874
}
875
875
876
- // get the response contents in chunk and save them in a file
876
+ // get the response content in chunks and save them in a file
877
877
// response chunks implement Symfony\Contracts\HttpClient\ChunkInterface
878
878
$fileHandler = fopen('/ubuntu.iso', 'w');
879
879
foreach ($client->stream($response) as $chunk) {
0 commit comments