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