Returns an asynchronous response using curlmulti* functions.
When using the CurlMultiHandler, custom curl options can be specified as an
associative array of curl option constants mapping to values in the
curl key of the provided request options.
- property resource | CurlMultiHandle $_mh Internal use only. Lazy loaded multi-handle.
- final
Cloneable
Instantiable
Methods |
public
__construct
(
array
$options
=
[
]
) This handler accepts the following options:
|
public __destruct () |
public
__get
(
$name
)
|
public __invoke ( Psr\Http\Message\RequestInterface $request , array $options ) : GuzzleHttp\Promise\PromiseInterface |
public
execute
() :
void
Runs until all outstanding connections have completed. |
public
tick
() :
void
Ticks the curl event loop. |
Properties |
private
$active
|
private
$delays
|
private $factory |
private
$handles
|
private
$options
|
private
$selectTimeout
|
Methods |
private addRequest ( array $entry ) : void |
private
cancel
(
$id
) :
bool
Cancels a handle from sending and removes references to it.
|
private processMessages () : void |
private timeToNext () : int |