JSONRPC 1.0.0-beta3

Client extends Client
in package

Tags
todo

the JSON proposed RFC states that when making json calls, we should specify an 'accept: application/json' http header. Currently, we either do not output an 'accept' header or specify 'any' (in curl mode)

Table of Contents

Constants

OPT_JSONRPC_VERSION  = 'jsonrpc_version'

Properties

$no_multicall  : mixed
$request_charset_encoding  : mixed
$return_type  : mixed
$extra_options  : mixed
$jsonrpc_version  : string|null
$requestClass  : mixed
$responseClass  : mixed

Methods

__construct()  : mixed
getOption()  : mixed
send()  : Response|array<string|int, Response>
setOption()  : mixed

Constants

OPT_JSONRPC_VERSION

public mixed OPT_JSONRPC_VERSION = 'jsonrpc_version'

Properties

$no_multicall

public mixed $no_multicall = true

$request_charset_encoding

public mixed $request_charset_encoding = 'UTF-8'

$return_type

public mixed $return_type = \PhpXmlRpc\JsonRpc\Helper\Parser::RETURN_JSONRPCVALS

$extra_options

protected static mixed $extra_options = array(self::OPT_JSONRPC_VERSION)

$jsonrpc_version

protected string|null $jsonrpc_version = \PhpXmlRpc\JsonRpc\PhpJsonRpc::VERSION_2_0

$requestClass

protected static mixed $requestClass = '\PhpXmlRpc\JsonRpc\Request'

$responseClass

protected static mixed $responseClass = '\PhpXmlRpc\JsonRpc\Response'

Methods

__construct()

public __construct(mixed $path[, mixed $server = '' ][, mixed $port = '' ][, mixed $method = '' ]) : mixed
Parameters
$path : mixed
$server : mixed = ''
$port : mixed = ''
$method : mixed = ''

getOption()

public getOption(string $name) : mixed
Parameters
$name : string

see all the OPT_ constants

Tags
throws
ValueErrorException

on unsupported option

setOption()

public setOption(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed

        
On this page

Search results