public function Request::dispatch

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:

Overrides HasDispatcherInterface::dispatch

4 calls to Request::dispatch()
Request::processResponse in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Process a received response
Request::receiveResponseHeader in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Method to receive HTTP response headers as they are retrieved
Request::setResponse in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Manually set a response for the request.
Request::__clone in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Clone the request object, leaving off any response that was received

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 660

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

public function dispatch($eventName, array $context = array()) {
  $context['request'] = $this;
  $this
    ->getEventDispatcher()
    ->dispatch($eventName, new Event($context));
}