CURL_VERSION_STR
CURL_VERSION_STR = 'curl_version'
Creates curl resources from a request
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 |
release(\GuzzleHttp\Handler\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.
\GuzzleHttp\Handler\EasyHandle | $easy |
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 |
invokeStats(\GuzzleHttp\Handler\EasyHandle $easy)
\GuzzleHttp\Handler\EasyHandle | $easy |
finishError(callable $handler, \GuzzleHttp\Handler\EasyHandle $easy, \GuzzleHttp\Handler\CurlFactoryInterface $factory)
callable | $handler | |
\GuzzleHttp\Handler\EasyHandle | $easy | |
\GuzzleHttp\Handler\CurlFactoryInterface | $factory |
createRejection(\GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $ctx |
getDefaultConf(\GuzzleHttp\Handler\EasyHandle $easy)
\GuzzleHttp\Handler\EasyHandle | $easy |
applyMethod(\GuzzleHttp\Handler\EasyHandle $easy, array $conf)
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
applyBody(\Psr\Http\Message\RequestInterface $request, array $options, array $conf)
\Psr\Http\Message\RequestInterface | $request | |
array | $options | |
array | $conf |
applyHeaders(\GuzzleHttp\Handler\EasyHandle $easy, array $conf)
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
applyHandlerOptions(\GuzzleHttp\Handler\EasyHandle $easy, array $conf)
\GuzzleHttp\Handler\EasyHandle | $easy | |
array | $conf |
retryFailedRewind(callable $handler, \GuzzleHttp\Handler\EasyHandle $easy, array $ctx)
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 |
createHeaderFn(\GuzzleHttp\Handler\EasyHandle $easy)
\GuzzleHttp\Handler\EasyHandle | $easy |