orangeqs.juice.messaging._rpc._client#

Module Contents#

Classes#

UnixStreamHTTPConnection

UnixStreamTransport

Handles an HTTP transaction to an XML-RPC server.

UnixStreamXMLRPCClient

uri [,options] -> a logical connection to an XML-RPC server

API#

class orangeqs.juice.messaging._rpc._client.UnixStreamHTTPConnection(host, port=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, source_address=None, blocksize=8192)#

Bases: http.client.HTTPConnection

connect() None#

Connect to the host and port specified in init.

class orangeqs.juice.messaging._rpc._client.UnixStreamTransport(socket_path: str)#

Bases: xmlrpc.client.Transport

Handles an HTTP transaction to an XML-RPC server.

make_connection(host: tuple[str, dict[str, str]] | str) http.client.HTTPConnection#
class orangeqs.juice.messaging._rpc._client.UnixStreamXMLRPCClient(addr: str, **kwargs: Any)#

Bases: xmlrpc.client.ServerProxy

uri [,options] -> a logical connection to an XML-RPC server

uri is the connection point on the server, given as scheme://host/target.

The standard implementation always supports the “http” scheme. If SSL socket support is available (Python 2.0), it also supports “https”.

If the target part and the slash preceding it are both omitted, “/RPC2” is assumed.

The following options can be given as keyword arguments:

transport: a transport factory
encoding: the request encoding (default is UTF-8)

All 8-bit strings passed to the server proxy are assumed to use the given encoding.