Class CurlFactory
Creates curl resources from a request
-
GuzzleHttp\Handler\CurlFactory
implements
GuzzleHttp\Handler\CurlFactoryInterface
Methods summary
public
|
#
__construct( integer $maxHandles )
Parameters
- $maxHandles
- Maximum number of idle handles.
|
public
EasyHandle
|
#
create( Psr\Http\Message\RequestInterface $request, array $options )
Creates a cURL handle resource.
Creates a cURL handle resource.
Parameters
- $request
- Request
- $options
- Transfer options
Returns
EasyHandle
Throws
RuntimeException when an option cannot be applied
Implementation of
|
public
|
#
release( GuzzleHttp\Handler\EasyHandle $easy )
Release an easy handle, allowing it to be reused or closed.
Release an easy handle, allowing it to be reused or closed.
This function must call unset on the easy handle's "handle" property.
Parameters
Implementation of
|
public static
GuzzleHttp\Promise\PromiseInterface
|
#
finish( callable $handler, GuzzleHttp\Handler\EasyHandle $easy, GuzzleHttp\Handler\CurlFactoryInterface $factory )
Completes a cURL transaction, either returning a response promise or a
rejected promise.
Completes a cURL transaction, either returning a response promise or a
rejected promise.
Parameters
- $handler
- $easy
- $factory
- Dictates how the handle is released
Returns
|