Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurlHandler.php

function CurlHandler::__invoke

File

vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php, line 37

Class

CurlHandler
HTTP handler that uses cURL easy handles as a transport layer.

Namespace

GuzzleHttp\Handler

Code

public function __invoke(RequestInterface $request, array $options) : PromiseInterface {
    if (isset($options['delay'])) {
        \usleep($options['delay'] * 1000);
    }
    $easy = $this->factory
        ->create($request, $options);
    \curl_exec($easy->handle);
    $easy->errno = \curl_errno($easy->handle);
    return CurlFactory::finish($this, $easy, $this->factory);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal