10000 Tweaks · symfony/symfony-docs@90dc304 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90dc304

Browse files
committed
Tweaks
1 parent bef97ba commit 90dc304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ following methods::
798798
// gets the response body as a string
799799
$content = $response->getContent();
800800

801-
// casts the response JSON contents to a PHP array
801+
// casts the response JSON content to a PHP array
802802
$content = $response->toArray();
803803

804804
// casts the response content to a PHP stream resource
@@ -842,7 +842,7 @@ response sequentially instead of waiting for the entire response::
842842
throw new \Exception('...');
843843
}
844844

845-
// get the response contents in chunk and save them in a file
845+
// get the response content in chunks and save them in a file
846846
// response chunks implement Symfony\Contracts\HttpClient\ChunkInterface
847847
$fileHandler = fopen('/ubuntu.iso', 'w');
848848
foreach ($client->stream($response) as $chunk) {

0 commit comments

Comments
 (0)
0