Set configuration parameters for this HTTP client
array $config:
InvalidArgumentException
public function setConfig($config = array()) {
if ($config == null or !is_array($config)) {
throw new InvalidArgumentException("\$config should be an array and cannot be null");
}
foreach ($config as $k => $v) {
$this->config[strtolower($k)] = $v;
}
return $this;
}