You are here

public function CurlHandler::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php \GuzzleHttp\Handler\CurlHandler::__construct()

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\Handler

Code

public function __construct(array $options = []) {
  $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new CurlFactory(3);
}