\Guzzle\Http\CurlCurlMultiInterface

Interface for sending a pool of {@see RequestInterface} objects in parallel

Summary

Methods
Constants
getAllEvents()
setEventDispatcher()
getEventDispatcher()
dispatch()
addSubscriber()
add()
all()
remove()
reset()
send()
POLLING_REQUEST
ADD_REQUEST
REMOVE_REQUEST
MULTI_EXCEPTION
BLOCKING
No protected methods found
N/A
No private methods found
N/A

Constants

POLLING_REQUEST

POLLING_REQUEST = 'curl_multi.polling_request'

ADD_REQUEST

ADD_REQUEST = 'curl_multi.add_request'

REMOVE_REQUEST

REMOVE_REQUEST = 'curl_multi.remove_request'

MULTI_EXCEPTION

MULTI_EXCEPTION = 'curl_multi.exception'

BLOCKING

BLOCKING = 'curl_multi.blocking'

Methods

getAllEvents()

getAllEvents() : array

Get a list of all of the events emitted from the class

Returns

array

dispatch()

dispatch(string  $eventName, array  $context = array()) : \Guzzle\Common\Event

Helper to dispatch Guzzle events and set the event name on the event

Parameters

string $eventName

Name of the event to dispatch

array $context

Context of the event

Returns

\Guzzle\Common\Event

Returns the created event object

all()

all() : array

Get an array of attached {@see RequestInterface} objects

Returns

array

remove()

remove(\Guzzle\Http\Message\RequestInterface  $request) : boolean

Remove a request from the pool.

Parameters

\Guzzle\Http\Message\RequestInterface $request

Request to remove

Returns

boolean —

Returns true on success or false on failure

reset()

reset(boolean  $hard = false) 

Reset the state and remove any attached RequestInterface objects

Parameters

boolean $hard

Set to true to close and reopen any open multi handles

send()

send() 

Send a pool of {@see RequestInterface} requests.

Throws

\Guzzle\Common\Exception\ExceptionCollection

if any requests threw exceptions during the transfer.