Extends
lithium\core\Object
Initializes a new `Service` instance with the default HTTP request settings and
transport- and format-handling classes.
Parameters
- array $config
Source
public function __construct(array $config = array()) {
$defaults = array(
'persistent' => false,
'scheme' => 'http',
'host' => 'localhost',
'port' => null,
'timeout' => 30,
'auth' => null,
'username' => null,
'password' => null,
'encoding' => 'UTF-8',
'socket' => 'Context'
);
parent::__construct($config + $defaults);
}