Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
GuzzleHttp\Handler\CurlFactory Class Reference
Inheritance diagram for GuzzleHttp\Handler\CurlFactory:
GuzzleHttp\Handler\CurlFactoryInterface

Public Member Functions

 __construct (int $maxHandles)
 
 create (RequestInterface $request, array $options)
 
 release (EasyHandle $easy)
 Release an easy handle, allowing it to be reused or closed.
 

Static Public Member Functions

static finish (callable $handler, EasyHandle $easy, CurlFactoryInterface $factory)
 Completes a cURL transaction, either returning a response promise or a rejected promise.
 

Public Attributes

const CURL_VERSION_STR = 'curl_version'
 
const LOW_CURL_VERSION_NUMBER = '7.21.2'
 

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Handler\CurlFactory::__construct ( int $maxHandles)
Parameters
int$maxHandlesMaximum number of idle handles.

Member Function Documentation

◆ create()

GuzzleHttp\Handler\CurlFactory::create ( RequestInterface $request,
array $options )

◆ finish()

static GuzzleHttp\Handler\CurlFactory::finish ( callable $handler,
EasyHandle $easy,
CurlFactoryInterface $factory )
static

Completes a cURL transaction, either returning a response promise or a rejected promise.

Parameters
callable(RequestInterface,array)PromiseInterface $handler
CurlFactoryInterface$factoryDictates how the handle is released

◆ release()

GuzzleHttp\Handler\CurlFactory::release ( EasyHandle $easy)

Release an easy handle, allowing it to be reused or closed.

This function must call unset on the easy handle's "handle" property.

Implements GuzzleHttp\Handler\CurlFactoryInterface.

Member Data Documentation

◆ LOW_CURL_VERSION_NUMBER

const GuzzleHttp\Handler\CurlFactory::LOW_CURL_VERSION_NUMBER = '7.21.2'

The documentation for this class was generated from the following file: