b.s.p.SmartServerRequestProtocolTwo(SmartServerRequestProtocolOne) : class documentation

Part of bzrlib.smart.protocol View In Hierarchy

Version two of the server side of the smart protocol.

This prefixes responses with the value of RESPONSE_VERSION_TWO.

Method _write_success_or_failure_prefix Write the protocol specific success/failure prefix.
Method _write_protocol_version Write any prefixes this protocol requires.
Method _send_response Send a smart server response down the output stream.

Inherited from SmartServerRequestProtocolOne:

Method __init__ Undocumented
Method accept_bytes Take bytes, and advance the internal state machine appropriately.
Method next_read_size Undocumented

Inherited from SmartProtocolBase (via SmartServerRequestProtocolOne):

Method _encode_bulk_data Encode body as a bulk data chunk.
Method _serialise_offsets Serialise a readv offset list.
def _write_success_or_failure_prefix(self, response):
Write the protocol specific success/failure prefix.
def _write_protocol_version(self):
Write any prefixes this protocol requires.

Version two sends the value of RESPONSE_VERSION_TWO.

def _send_response(self, response):
Send a smart server response down the output stream.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.