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