b.s.p.SmartClientRequestProtocolTwo(SmartClientRequestProtocolOne) : class documentation

Part of bzrlib.smart.protocol View In Hierarchy

Version two of the client side of the smart protocol.

This prefixes the request with the value of REQUEST_VERSION_TWO.

Method read_response_tuple Read a response tuple from the wire.
Method read_streamed_body Read bytes from the body, decoding into a byte stream.
Method _write_protocol_version Write any prefixes this protocol requires.

Inherited from SmartClientRequestProtocolOne:

Method __init__ Construct a SmartClientRequestProtocolOne.
Method set_headers Undocumented
Method call Make a remote call.
Method call_with_body_bytes Make a remote call of args with body bytes 'body'.
Method call_with_body_readv_array Make a remote call with a readv array.
Method call_with_body_stream Undocumented
Method cancel_read_body After expecting a body, a response code may indicate one otherwise.
Method read_body_bytes Read bytes from the body, decoding into a byte stream.
Method query_version Return protocol version number of the server.
Method _read_response_tuple Undocumented
Method _raise_args_if_error Undocumented
Method _response_is_unknown_method Raise UnexpectedSmartServerResponse if the response is an 'unknonwn
Method _recv_tuple Receive a tuple from the medium request.
Method _write_args Undocumented

Inherited from SmartProtocolBase (via SmartClientRequestProtocolOne):

Method _encode_bulk_data Encode body as a bulk data chunk.
Method _serialise_offsets Serialise a readv offset list.
def read_response_tuple(self, expect_body=False):
Read a response tuple from the wire.

This should only be called once.

def _write_protocol_version(self):
Write any prefixes this protocol requires.

Version two sends the value of REQUEST_VERSION_TWO.

def read_streamed_body(self):
Read bytes from the body, decoding into a byte stream.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.