b.s.r.SmartServerRequestHandler(object) : class documentation

Part of bzrlib.smart.request View In Hierarchy

Protocol logic for smart server.

This doesn't handle serialization at all, it just processes requests and creates responses.

Method __init__ Constructor.
Method accept_body Accept body data.
Method end_of_body No more body data will be received.
Method headers_received Undocumented
Method args_received Undocumented
Method end_received Undocumented
Method post_body_error_received Undocumented
Method _trace Undocumented
Method _run_handler_code Run some handler specific code 'callable'.
Method _call_converting_errors Call callable converting errors to Response objects.
def __init__(self, backing_transport, commands, root_client_path, jail_root=None):
Constructor.
Parametersbacking_transporta Transport to handle requests for.
commandsa registry mapping command names to SmartServerRequest subclasses. e.g. bzrlib.transport.smart.vfs.vfs_commands.
def _trace(self, action, message, extra_bytes=None, include_time=False):
Undocumented
def accept_body(self, bytes):
Accept body data.
def end_of_body(self):
No more body data will be received.
def _run_handler_code(self, callable, args, kwargs):
Run some handler specific code 'callable'.

If a result is returned, it is considered to be the commands response, and finished_reading is set true, and its assigned to self.response.

Any exceptions caught are translated and a response object created from them.

def _call_converting_errors(self, callable, args, kwargs):
Call callable converting errors to Response objects.
def headers_received(self, headers):
Undocumented
def args_received(self, args):
Undocumented
def end_received(self):
Undocumented
def post_body_error_received(self, error_args):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.