public function CurlMultiHandler::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php \GuzzleHttp\Handler\CurlMultiHandler::__construct()
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\HandlerCode
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;
}