\GuzzleHttp\HandlerCurlHandler

HTTP handler that uses cURL easy handles as a transport layer.

When using the CurlHandler, custom curl options can be specified as an associative array of curl option constants mapping to values in the curl key of the "client" key of the request.

Summary

Methods
Properties
Constants
__construct()
__invoke()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$factory
N/A

Properties

Methods

__construct()

__construct(array  $options = []) : mixed

Accepts an associative array of options:

  • factory: Optional curl factory used to create cURL handles.

Parameters

array $options

Array of options to use with the handler

Returns

mixed —

__invoke()

__invoke(\Psr\Http\Message\RequestInterface  $request, array  $options) : \GuzzleHttp\Promise\PromiseInterface

Parameters

\Psr\Http\Message\RequestInterface $request
array $options

Returns

\GuzzleHttp\Promise\PromiseInterface —