Documentation

CurlHandler
in package

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.

Tags
final

Table of Contents

Properties

$factory  : CurlFactoryInterface

Methods

__construct()  : mixed
Accepts an associative array of options:
__invoke()  : PromiseInterface

Properties

Methods

__construct()

Accepts an associative array of options:

public __construct([CurlFactoryInterface} $options = [] ]) : mixed
  • handle_factory: Optional curl factory used to create cURL handles.
Parameters
$options : CurlFactoryInterface} = []

Array of options to use with the handler


        
On this page

Search results