Constructor method. Will create a new HTTP client. Accepts the target URL and optionally configuration array.
string $uri:
array $config Configuration key-value pairs.:
public function __construct($uri = null, $config = null) {
if ($uri !== null) {
$this
->setUri($uri);
}
if ($config !== null) {
$this
->setConfig($config);
}
}