public function CurlMulti::remove

Remove a request from the pool.

Parameters

RequestInterface $request Request to remove:

Return value

CurlMultiInterface

Overrides CurlMultiInterface::remove

4 calls to CurlMulti::remove()
CurlMulti::beforeSend in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Prepare for sending
CurlMulti::processResponse in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Check for errors and fix headers of a request based on a curl response
CurlMulti::removeErroredRequest in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Remove a request that encountered an exception
CurlMulti::reset in drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php
Reset the state and remove any attached RequestInterface objects

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Curl/CurlMulti.php, line 205

Class

CurlMulti
Send { This implementation allows callers to send blocking requests that return back to the caller when their requests complete, regardless of whether or not previously sending requests in the curl_multi object have completed. The implementation…

Namespace

Guzzle\Http\Curl

Code

public function remove(RequestInterface $request) {
  $this
    ->removeHandle($request);
  $this->requestCache = null;
  foreach ($this->requests as $scope => $scopedRequests) {
    $pos = array_search($request, $scopedRequests, true);
    if ($pos !== false) {
      unset($this->requests[$scope][$pos]);
      break;
    }
  }
  $this
    ->dispatch(self::REMOVE_REQUEST, array(
    'request' => $request,
  ));
  return $this;
}