You are here

public function CurlMultiHandler::__construct in Lockr 7.3

This handler accepts the following options:

  • handle_factory: An optional factory used to create curl handles
  • select_timeout: Optional timeout (in seconds) to block before timing out while selecting curl handles. Defaults to 1 second.

Parameters

array $options:

File

vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php, line 36

Class

CurlMultiHandler
Returns an asynchronous response using curl_multi_* functions.

Namespace

GuzzleHttp\Handler

Code

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