Methods |
public
|
__construct(
CommunicatorConfiguration $communicatorConfiguration,
Authenticator $authenticator,
Connection|null $connection = null,
)
|
#
|
public
|
enableLogging(CommunicatorLogger $communicatorLogger)
|
#
|
public
|
disableLogging()
|
#
|
public
|
get(
ResponseClassMap $responseClassMap,
string $relativeUriPath,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
): DataObject
|
#
|
public
|
getWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
)
Parameters
$bodyHandler |
Callable accepting a response body chunk and the response headers
|
$responseClassMap |
Used for error handling
|
Throws
|
#
|
public
|
delete(
ResponseClassMap $responseClassMap,
string $relativeUriPath,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
): DataObject
|
#
|
public
|
deleteWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
)
Parameters
$bodyHandler |
Callable accepting a response body chunk and the response headers
|
$responseClassMap |
Used for error handling
|
Throws
|
#
|
public
|
post(
ResponseClassMap $responseClassMap,
string $relativeUriPath,
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
): DataObject
|
#
|
public
|
postWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
)
Parameters
$bodyHandler |
Callable accepting a response body chunk and the response headers
|
$responseClassMap |
Used for error handling
|
Throws
|
#
|
public
|
put(
ResponseClassMap $responseClassMap,
string $relativeUriPath,
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
): DataObject
|
#
|
public
|
putWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext|null $callContext = null,
)
Parameters
$bodyHandler |
Callable accepting a response body chunk and the response headers
|
$responseClassMap |
Used for error handling
|
Throws
|
#
|
protected
|
updateCallContext(ConnectionResponse $response, CallContext|null $callContext = null)
|
#
|
protected
|
getRequestUri($relativeUriPath, RequestObject|null $requestParameters = null): string
|
#
|
protected
|
getRequestHeaders(
string $httpMethod,
string $relativeUriPathWithRequestParameters,
string $contentType,
CallContext|null $callContext = null,
): string[]
|
#
|
protected
static
|
getRfc161Date(): string
|
#
|
protected
|
getRelativeUriPathWithRequestParameters(string $relativeUriPath, RequestObject|null $requestParameters = null): string
|
#
|
protected
|
getResponseFactory(): ResponseFactory
|
#
|