public function CurlHandler::__construct in Lockr 7.3
Accepts an associative array of options:
- factory: Optional curl factory used to create cURL handles.
Parameters
array $options Array of options to use with the handler:
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlHandler.php, line 26
Class
- CurlHandler
- HTTP handler that uses cURL easy handles as a transport layer.
Namespace
GuzzleHttp\HandlerCode
public function __construct(array $options = []) {
$this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new CurlFactory(3);
}