__construct() public method

Constructor. Adds config values to the public properties when a new object is created.
See also: lithium\net\http\Message::__construct()
See also: lithium\net\Message::__construct()
public __construct ( array $config = [] ) : void
$config array The available configuration options are the following. Further options are inherited from the parent classes. - `'message'` _string_: Defaults to `null`. - `'status'` _mixed_: Defaults to `null`. - `'type'` _string_: Defaults to `null`. - `'cookies'` _array_: Defaults to `array()`.
return void
 public function __construct(array $config = array())
 {
     $defaults = array('buffer' => 8192, 'location' => null, 'status' => 0, 'request' => null, 'decode' => false);
     parent::__construct($config + $defaults);
 }
 public function __construct($config = array())
 {
     $defaults = array('buffer' => 8192, 'request' => null);
     parent::__construct((array) $config + $defaults);
 }