__construct()
call()
doRequest()
getHttpClient()
getLastRequest()
getLastResponse()
setHttpClient()
createRequest()
$httpClient
$id
$lastRequest
$lastResponse
$serverAddress
__construct(string $server, \Zend\Http\Client $httpClient)
stringFull address of the JSON-RPC service.
call(string $method, array $params) : mixed
Unified interface for calling custom remote methods.
stringName of the method we want to call.
arrayArray of parameters for the method.
\Zend\Json\Server\Exception\ErrorException |
When remote call fails. |
|---|
mixedMethod call results.doRequest(\Zend\Json\Server\Request $request) : \Zend\Json\Server\Response
\Zend\Json\Server\Exception\HttpException |
When HTTP communication fails. |
|---|
\Zend\Json\Server\ResponseResponse.getHttpClient() : \Zend\Http\Client
\Zend\Http\ClientHTTP client.getLastRequest() : \Zend\Json\Server\Request
\Zend\Json\Server\RequestRequest instance.getLastResponse() : \Zend\Json\Server\Response
\Zend\Json\Server\ResponseResponse instance.setHttpClient(\Zend\Http\Client $httpClient) : \Zend\Json\Server\Client
createRequest(string $method, array $params) : \Zend\Json\Server\Request
stringMethod to call.
arrayList of arguments.
\Zend\Json\Server\RequestCreated request.$id : int
$serverAddress : string