Copied!

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.

  • final
CloneableInstantiable
Methods
public __construct(array $options = [])
 

Accepts an associative array of options:

  • handle_factory: Optional curl factory used to create cURL handles.
  • param array{handle_factory?: ?\CurlFactoryInterface} $options Array of options to use with the handler
public __invoke(Psr\Http\Message\RequestInterface $request, array $options) : GuzzleHttp\Promise\PromiseInterface
Properties
private $factory = NULL
 
  • var \CurlFactoryInterface
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration