lithium\data\source\Http::__construct()
Constructor.
Parameters
-
array
$config
Returns
voidSource
public function __construct(array $config = []) {
$defaults = [
'adapter' => null,
'persistent' => false,
'scheme' => 'http',
'host' => 'localhost',
'version' => '1.1',
'auth' => null,
'login' => '',
'password' => '',
'port' => 80,
'timeout' => 30,
'encoding' => 'UTF-8',
'methods' => []
];
$config = $config + $defaults;
$config['username'] = $config['login'];
parent::__construct($config);
}