lithium\net\socket\Curl::set()
Overrides
lithium\net\Socket::set()
Sets the options to be used in subsequent curl requests.
Parameters
-
array
$flags
If $values is an array, $flags will be used as the keys to an associative array of curl options. If $values is not set, then $flags will be used as the associative array.
-
array
$value
If set, this array becomes the values for the associative array of curl options.
Returns
voidLinks
Source
public function set($flags, $value = null) {
if ($value !== null) {
$flags = [$flags => $value];
}
$this->options = $flags + $this->options;
}