class CRM_Cxn_CiviCxnHttp extends PhpHttp

Class CRM_Cxn_CiviCxnHttp

This extends the PhpHttp client used by CiviConnect and adds: - Force-cache support for GET requests - Compliance with SSL policy

Properties

static protected $singleton
protected CRM_Utils_Cache_Interface|null $cache

Methods

singleton(bool $fresh = FALSE)

No description

__construct(CRM_Utils_Cache_Interface|NULL $cache)

No description

array
send(string $verb, string $url, string $blob, array $headers = array())

No description

array
createStreamOpts(string $verb, string $url, string $blob, array $headers)

Create stream options.

Details

at line 23
static CRM_Cxn_CiviCxnHttp singleton(bool $fresh = FALSE)

Parameters

bool $fresh

Return Value

CRM_Cxn_CiviCxnHttp

at line 40
__construct(CRM_Utils_Cache_Interface|NULL $cache)

Parameters

CRM_Utils_Cache_Interface|NULL $cache The cache data store.

at line 53
array send(string $verb, string $url, string $blob, array $headers = array())

Parameters

string $verb
string $url
string $blob
array $headers Array of headers (e.g. "Content-type" => "text/plain").

Return Value

array array($headers, $blob, $code)

at line 93
protected array createStreamOpts(string $verb, string $url, string $blob, array $headers)

Create stream options.

Parameters

string $verb
string $url
string $blob
array $headers

Return Value

array

Exceptions

Exception