Methods |
public
|
__construct(CommunicatorConfiguration $communicatorConfiguration = null)
|
#
|
public
|
__destruct()
|
#
|
public
|
get(string $requestUri, string[] $requestHeaders, callable $responseHandler)
Parameters
$responseHandler |
Callable accepting the response status code, a response body chunk and the response headers
|
Implements
|
#
|
public
|
delete(string $requestUri, string[] $requestHeaders, callable $responseHandler)
Parameters
$responseHandler |
Callable accepting the response status code, a response body chunk and the response headers
|
Implements
|
#
|
public
|
post(string $requestUri, string[] $requestHeaders, string|MultipartFormDataObject $body, callable $responseHandler)
Parameters
$responseHandler |
Callable accepting the response status code, a response body chunk and the response headers
|
Implements
|
#
|
public
|
put(string $requestUri, string[] $requestHeaders, string $body, callable $responseHandler)
Parameters
$responseHandler |
Callable accepting the response status code, a response body chunk and the response headers
|
Implements
|
#
|
public
|
enableLogging(CommunicatorLogger $communicatorLogger)
|
#
|
public
|
disableLogging()
|
#
|
protected
|
executeRequest(
string $httpMethod,
string $requestUri,
string[] $requestHeaders,
string|MultipartFormDataObject $body,
callable $responseHandler,
)
Parameters
$responseHandler |
Callable accepting the response status code, a response body chunk and the response headers
|
Throws
|
#
|
protected
|
getCurlHandle(): resource
|
#
|
protected
|
setCurlOptions(
resource $curlHandle,
string $httpMethod,
string $requestUri,
string[] $requestHeaders,
string|MultipartFormDataObject $body,
)
|
#
|
protected
|
logRequest(
string $requestId,
string $requestMethod,
string $requestUri,
array $requestHeaders,
string $requestBody = '',
)
|
#
|
protected
|
logResponse(string $requestId, string $requestUri, ConnectionResponse $response)
|
#
|
protected
|
logException(string $requestId, string $requestUri, Exception $exception)
|
#
|
protected
|
getCommunicatorLoggerHelper(): CommunicatorLoggerHelper
|
#
|
public
|
setBodyObfuscator(BodyObfuscator $bodyObfuscator)
|
#
|
public
|
setHeaderObfuscator(HeaderObfuscator $headerObfuscator)
|
#
|