You are here

public function CurlMultiHandler::__construct in Auth0 Single Sign On 8.2

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.
  • options: An associative array of CURLMOPT_* options and corresponding values for curl_multi_setopt()

Parameters

array $options:

File

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

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);
  if (isset($options['select_timeout'])) {
    $this->selectTimeout = $options['select_timeout'];
  }
  elseif ($selectTimeout = getenv('GUZZLE_CURL_SELECT_TIMEOUT')) {
    $this->selectTimeout = $selectTimeout;
  }
  else {
    $this->selectTimeout = 1;
  }
  $this->options = isset($options['options']) ? $options['options'] : [];
}