YoastSEO_Vendor\GuzzleHttp\Handler
CurlMultiHandler::__construct() public Yoast 1.0
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.
{} Это метод класса: CurlMultiHandler{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$CurlMultiHandler = new CurlMultiHandler(); $CurlMultiHandler->__construct( $options );
- $options(массив)
По умолчанию: []
Код CurlMultiHandler::__construct() CurlMultiHandler:: construct Yoast 15.6.2
public function __construct(array $options = [])
{
$this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \YoastSEO_Vendor\GuzzleHttp\Handler\CurlFactory(50);
$this->selectTimeout = isset($options['select_timeout']) ? $options['select_timeout'] : 1;
}