public __construct ( Http\Client\HttpClient $client, string $sourceCountry = null, boolean $useSsl = false ) | ||
$client | Http\Client\HttpClient | An HTTP adapter |
$sourceCountry | string | Country biasing (optional) |
$useSsl | boolean | Whether to use an SSL connection (optional) |
public function __construct(HttpClient $client, $sourceCountry = null, $useSsl = false)
{
parent::__construct($client);
$this->sourceCountry = $sourceCountry;
$this->protocol = $useSsl ? 'https' : 'http';
}