Class CurlMulti
Send Guzzle\Http\Message\RequestInterface
objects in parallel using curl_multi
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Curl\CurlMulti implements Guzzle\Http\Curl\CurlMultiInterface
Direct known subclasses
Guzzle\Tests\Mock\MockMulti
public
|
|
public
|
|
public
|
|
public
array
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
protected
|
#
throwMultiException( array $exceptions, array $successful )
Build and throw a MultiTransferException |
protected
|
|
protected
|
#
createCurlHandle(
Create a curl handle for a request |
protected
|
|
protected
|
#
removeErroredRequest(
Remove a request that encountered an exception |
protected
|
#
processResponse(
Check for errors and fix headers of a request based on a curl response |
protected
|
#
removeHandle(
Remove a curl handle from the curl multi object |
addSubscriber(),
dispatch(),
getAllEvents(),
getEventDispatcher(),
setEventDispatcher()
|
ADD_REQUEST,
BLOCKING,
MULTI_EXCEPTION,
POLLING_REQUEST,
REMOVE_REQUEST
|
protected
resource
|
$multiHandle
cURL multi handle. |
|
protected
array
|
$requests
Attached |
|
protected
|
$handles
RequestInterface to CurlHandle hash |
|
protected
array
|
$resourceHash
Hash mapping curl handle resource IDs to request objects |
|
protected
array
|
$exceptions
Queued exceptions |
#
array()
|
protected
array
|
$successful
Requests that succeeded |
#
array()
|
protected
array
|
$multiErrors
cURL multi error values and codes |
#
array(
CURLM_BAD_HANDLE => array('CURLM_BAD_HANDLE', 'The passed-in handle is not a valid CURLM handle.'),
CURLM_BAD_EASY_HANDLE => array('CURLM_BAD_EASY_HANDLE', "An easy handle was not good/valid. It could mean that it isn't an easy handle at all, or possibly that the handle already is in used by this or another multi handle."),
CURLM_OUT_OF_MEMORY => array('CURLM_OUT_OF_MEMORY', 'You are doomed.'),
CURLM_INTERNAL_ERROR => array('CURLM_INTERNAL_ERROR', 'This can only be returned if libcurl bugs. Please report it to us!')
)
|
protected
float
|
$selectTimeout
|
$eventDispatcher
|