Open Monograph Press  3.3.0
GuzzleHttp\Handler\CurlMultiHandler Class Reference

Public Member Functions

 __construct (array $options=[])
 
 __destruct ()
 
 __get ($name)
 
 __invoke (RequestInterface $request, array $options)
 
 execute ()
 
 tick ()
 

Detailed Description

Definition at line 18 of file CurlMultiHandler.php.

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Handler\CurlMultiHandler::__construct ( array  $options = [])

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

Definition at line 42 of file CurlMultiHandler.php.

◆ __destruct()

GuzzleHttp\Handler\CurlMultiHandler::__destruct ( )

Definition at line 76 of file CurlMultiHandler.php.

Member Function Documentation

◆ __get()

GuzzleHttp\Handler\CurlMultiHandler::__get (   $name)

Definition at line 58 of file CurlMultiHandler.php.

◆ __invoke()

GuzzleHttp\Handler\CurlMultiHandler::__invoke ( RequestInterface  $request,
array  $options 
)

Definition at line 84 of file CurlMultiHandler.php.

◆ execute()

GuzzleHttp\Handler\CurlMultiHandler::execute ( )

Runs until all outstanding connections have completed.

Definition at line 139 of file CurlMultiHandler.php.

References GuzzleHttp\Handler\CurlMultiHandler\tick().

◆ tick()

GuzzleHttp\Handler\CurlMultiHandler::tick ( )

Ticks the curl event loop.

Definition at line 104 of file CurlMultiHandler.php.

References GuzzleHttp\Utils\currentTime().

Referenced by GuzzleHttp\Handler\CurlMultiHandler\execute().


The documentation for this class was generated from the following file: