Request Options

You can customize requests created and transferred by a client using request options. Request options control various aspects of a request including, headers, query string parameters, timeout settings, the body of a request, and much more.

All of the following examples use the following client:

  1. $client = new GuzzleHttp\Client(['base_uri' => 'http://httpbin.org']);