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

Breadcrumb

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

function CurlHandler::__construct

Accepts an associative array of options:

  • handle_factory: Optional curl factory used to create cURL handles.

Parameters

array{handle_factory?: ?CurlFactoryInterface} $options Array of options to use with the handler:

File

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

Class

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

Namespace

GuzzleHttp\Handler

Code

public function __construct(array $options = []) {
    $this->factory = $options['handle_factory'] ?? new CurlFactory(3);
}

API Navigation

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