CURL_VERSION_STR
CURL_VERSION_STR = 'curl_version'
Creates curl resources from a request
$handles : resource[]|\CurlHandle[]
None found |
$maxHandles : int
None found |
__construct(int $maxHandles) : mixed
int | $maxHandles | Maximum number of idle handles. |
None found |
create(\Psr\Http\Message\RequestInterface $request, array $options) : \GuzzleHttp\Handler\EasyHandle
Creates a cURL handle resource.
\Psr\Http\Message\RequestInterface | $request | Request |
array | $options | Transfer options |
None found |
release(\GuzzleHttp\Handler\EasyHandle $easy) : void
Release an easy handle, allowing it to be reused or closed.
This function must call unset on the easy handle's "handle" property.
\GuzzleHttp\Handler\EasyHandle | $easy |
None found |
finish(callable $handler, \GuzzleHttp\Handler\EasyHandle $easy, \GuzzleHttp\Handler\CurlFactoryInterface $factory) : \GuzzleHttp\Promise\PromiseInterface
Completes a cURL transaction, either returning a response promise or a rejected promise.
callable | $handler | |
\GuzzleHttp\Handler\EasyHandle | $easy | |
\GuzzleHttp\Handler\CurlFactoryInterface | $factory | Dictates how the handle is released |
None found |
invokeStats(\GuzzleHttp\Handler\EasyHandle $easy) : void
\GuzzleHttp\Handler\EasyHandle | $easy |
None found |
finishError(callable $handler, \GuzzleHttp\Handler\EasyHandle $easy, \GuzzleHttp\Handler\CurlFactoryInterface $factory) : \GuzzleHttp\Promise\PromiseInterface
callable | $handler | |
\GuzzleHttp\Handler\EasyHandle | $easy | |
\GuzzleHttp\Handler\CurlFactoryInterface | $factory |
None found |
createRejection(\GuzzleHttp\Handler\EasyHandle $easy, array $ctx) : \GuzzleHttp\Promise\PromiseInterface
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $ctx |
None found |
getDefaultConf(\GuzzleHttp\Handler\EasyHandle $easy) : array<int|string,mixed>
\GuzzleHttp\Handler\EasyHandle | $easy |
None found |
applyMethod(\GuzzleHttp\Handler\EasyHandle $easy, array $conf) : void
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
None found |
applyBody(\Psr\Http\Message\RequestInterface $request, array $options, array $conf) : void
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
array | $conf |
None found |
applyHeaders(\GuzzleHttp\Handler\EasyHandle $easy, array $conf) : void
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
None found |
removeHeader(string $name, array $options) : void
Remove a header from the options array.
string | $name | Case-insensitive header to remove |
array | $options | Array of options to modify |
None found |
applyHandlerOptions(\GuzzleHttp\Handler\EasyHandle $easy, array $conf) : void
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
None found |
retryFailedRewind(callable $handler, \GuzzleHttp\Handler\EasyHandle $easy, array $ctx) : \GuzzleHttp\Promise\PromiseInterface
This function ensures that a response was set on a transaction. If one was not set, then the request is retried if possible. This error typically means you are sending a payload, curl encountered a "Connection died, retrying a fresh connect" error, tried to rewind the stream, and then encountered a "necessary data rewind wasn't possible" error, causing the request to be sent through curl_multi_info_read() without an error status.
callable | $handler | |
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $ctx |
None found |
createHeaderFn(\GuzzleHttp\Handler\EasyHandle $easy) : callable
\GuzzleHttp\Handler\EasyHandle | $easy |
None found |