Open Monograph Press  3.3.0
GuzzleHttp\Handler\CurlHandler Class Reference

Public Member Functions

 __construct (array $options=[])
 
 __invoke (RequestInterface $request, array $options)
 

Detailed Description

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.

Definition at line 14 of file CurlHandler.php.

Constructor & Destructor Documentation

◆ __construct()

GuzzleHttp\Handler\CurlHandler::__construct ( array  $options = [])

Accepts an associative array of options:

  • factory: Optional curl factory used to create cURL handles.
Parameters
array$optionsArray of options to use with the handler

Definition at line 29 of file CurlHandler.php.

Member Function Documentation

◆ __invoke()

GuzzleHttp\Handler\CurlHandler::__invoke ( RequestInterface  $request,
array  $options 
)

Definition at line 36 of file CurlHandler.php.

References GuzzleHttp\Handler\CurlFactory\finish().


The documentation for this class was generated from the following file: