Methods |
public
|
__construct(
CommunicatorConfiguration $communicatorConfiguration,
Authenticator|null $authenticator = null,
Connection|null $connection = null,
)
|
#
|
public
|
enableLogging(CommunicatorLogger $communicatorLogger)
|
#
|
public
|
disableLogging()
|
#
|
public
|
get(
ResponseClassMap $responseClassMap,
string $relativeUriPath,
string $clientMetaInfo = '',
RequestObject|null $requestParameters = null,
CallContext $callContext = null,
): DataObject
|
#
|
public
|
getWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
string $clientMetaInfo = '',
RequestObject|null $requestParameters = null,
CallContext $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,
string $clientMetaInfo = '',
RequestObject|null $requestParameters = null,
CallContext $callContext = null,
): DataObject
|
#
|
public
|
deleteWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
string $clientMetaInfo = '',
RequestObject|null $requestParameters = null,
CallContext $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,
string $clientMetaInfo = '',
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext $callContext = null,
): DataObject
|
#
|
public
|
postWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
string $clientMetaInfo = '',
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext $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,
string $clientMetaInfo = '',
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext $callContext = null,
): DataObject
|
#
|
public
|
putWithBinaryResponse(
callable $bodyHandler,
ResponseClassMap $responseClassMap,
string $relativeUriPath,
string $clientMetaInfo = '',
DataObject|MultipartDataObject|MultipartFormDataObject|null $requestBodyObject = null,
RequestObject|null $requestParameters = null,
CallContext $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 $callContext = null)
|
#
|
protected
|
getRequestUri($relativeUriPath, RequestObject|null $requestParameters = null): string
|
#
|
protected
|
getRequestHeaders(
string $httpMethod,
string $relativeUriPathWithRequestParameters,
string $contentType,
string $clientMetaInfo = '',
CallContext $callContext = null,
): string[]
|
#
|
protected
static
|
getRfc161Date(): string
|
#
|
protected
|
getRelativeUriPathWithRequestParameters($relativeUriPath, RequestObject|null $requestParameters = null): string
|
#
|
protected
|
getResponseFactory(): ResponseFactory
|
#
|