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

Part of bzrlib.smart.protocol View In Hierarchy

Known subclasses: bzrlib.smart.protocol.SmartServerRequestProtocolTwo

Server-side encoding and decoding logic for smart version 1.
Method __init__ Undocumented
Method accept_bytes Take bytes, and advance the internal state machine appropriately.
Method next_read_size Undocumented
Method _send_response Send a smart server response down the output stream.
Method _write_protocol_version Write any prefixes this protocol requires.
Method _write_success_or_failure_prefix Write the protocol specific success/failure prefix.

Inherited from SmartProtocolBase:

Method _encode_bulk_data Encode body as a bulk data chunk.
Method _serialise_offsets Serialise a readv offset list.
def __init__(self, backing_transport, write_func, root_client_path='/', jail_root=None):
Undocumented
def accept_bytes(self, bytes):
Take bytes, and advance the internal state machine appropriately.
Parametersbytesmust be a byte string
def _send_response(self, response):
Send a smart server response down the output stream.
def _write_protocol_version(self):
Write any prefixes this protocol requires.

Version one doesn't send protocol versions.

def _write_success_or_failure_prefix(self, response):
Write the protocol specific success/failure prefix.

For SmartServerRequestProtocolOne this is omitted but we call is_successful to ensure that the response is valid.

def next_read_size(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.