Class AsyncPlugin
Sends requests but does not wait for the response
- Guzzle\Plugin\Async\AsyncPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Methods summary
-
public staticgetSubscribedEvents ( ) -
publiconBeforeSend ( Guzzle\Common\Event $event )Event used to ensure that progress callback are emitted from the curl handle's request mediator.
-
publiconCurlProgress ( Guzzle\Common\Event $event )Event emitted when a curl progress function is called. When the amount of data uploaded == the amount of data to upload OR any bytes have been downloaded, then time the request out after 1ms because we're done with transmitting the request, and tell curl not download a body.
-
publiconRequestTimeout ( Guzzle\Common\Event $event )Event emitted when a curl exception occurs. Ignore the exception and set a mock response.
-
publiconRequestSent ( Guzzle\Common\Event $event )Event emitted when a request completes because it took less than 1ms. Add an X-Guzzle-Async header to notify the caller that there is no body in the message.
Methods detail
Event used to ensure that progress callback are emitted from the curl handle's request mediator.
Parameters
- $event
Guzzle\Common\Event
$event
Event emitted when a curl progress function is called. When the amount of data uploaded == the amount of data to upload OR any bytes have been downloaded, then time the request out after 1ms because we're done with transmitting the request, and tell curl not download a body.
Parameters
- $event
Guzzle\Common\Event
$event
Event emitted when a curl exception occurs. Ignore the exception and set a mock response.
Parameters
- $event
Guzzle\Common\Event
$event
Event emitted when a request completes because it took less than 1ms. Add an X-Guzzle-Async header to notify the caller that there is no body in the message.
Parameters
- $event
Guzzle\Common\Event
$event