query
- Summary
Associative array of query string values or query string to add tothe request.- Types
- array
- string- Default
None- Constant
GuzzleHttp\RequestOptions::QUERY
- // Send a GET request to /get?foo=bar
- $client->request('GET', '/get', ['query' => ['foo' => 'bar']]);
Query strings specified in the query
option will overwrite all query stringvalues supplied in the URI of a request.
- // Send a GET request to /get?foo=bar
- $client->request('GET', '/get?abc=123', ['query' => ['foo' => 'bar']]);