Skip to content

Commit 7de3bd1

Browse files
authored
Add query string documentation
1 parent 1e42455 commit 7de3bd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public function method(HttpClient $client)
1313
You can also use [Symfony HttpClient documentation](https://symfony.com/doc/current/components/http_client.html)
1414
```php
1515
$response = $client->get("https://example.com");
16+
$response = $client->get("https://example.com", ["query" => ["key" => "value"]]);
1617
$response->getContent(); // Get response body
1718
$response->toCollection(); // Transform JSON response to collection
1819
$response->getStatusCode(); // Get response status code

0 commit comments

Comments
 (0)