Open Monograph Press
3.3.0
|
Public Member Functions | |
__construct ($maxHandles) | |
create (RequestInterface $request, array $options) | |
release (EasyHandle $easy) | |
Static Public Member Functions | |
static | finish (callable $handler, EasyHandle $easy, CurlFactoryInterface $factory) |
Data Fields | |
const | CURL_VERSION_STR = 'curl_version' |
const | LOW_CURL_VERSION_NUMBER = '7.21.2' |
Creates curl resources from a request
Definition at line 15 of file CurlFactory.php.
GuzzleHttp\Handler\CurlFactory::__construct | ( | $maxHandles | ) |
int | $maxHandles | Maximum number of idle handles. |
Definition at line 35 of file CurlFactory.php.
GuzzleHttp\Handler\CurlFactory::create | ( | RequestInterface | $request, |
array | $options | ||
) |
Creates a cURL handle resource.
RequestInterface | $request | Request |
array | $options | Transfer options |
Implements GuzzleHttp\Handler\CurlFactoryInterface.
Definition at line 40 of file CurlFactory.php.
|
static |
Completes a cURL transaction, either returning a response promise or a rejected promise.
callable | $handler | |
EasyHandle | $easy | |
CurlFactoryInterface | $factory | Dictates how the handle is released |
Definition at line 101 of file CurlFactory.php.
References GuzzleHttp\Handler\CurlFactoryInterface\release().
Referenced by GuzzleHttp\Handler\CurlHandler\__invoke().
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.
EasyHandle | $easy |
Implements GuzzleHttp\Handler\CurlFactoryInterface.
Definition at line 70 of file CurlFactory.php.
const GuzzleHttp\Handler\CurlFactory::CURL_VERSION_STR = 'curl_version' |
Definition at line 17 of file CurlFactory.php.
const GuzzleHttp\Handler\CurlFactory::LOW_CURL_VERSION_NUMBER = '7.21.2' |
Definition at line 18 of file CurlFactory.php.