Part of bzrlib.smart.message View In Hierarchy
Known subclasses: bzrlib.smart.message.ConventionalRequestHandler, bzrlib.smart.message.ConventionalResponseHandler
As parts of a message are received, the corresponding PART_received method will be called.
Method | __init__ | Undocumented |
Method | headers_received | Called when message headers are received. |
Method | byte_part_received | Called when a 'byte' part is received. |
Method | bytes_part_received | Called when a 'bytes' part is received. |
Method | structure_part_received | Called when a 'structure' part is received. |
Method | protocol_error | Called when there is a protocol decoding error. |
Method | end_received | Called when the end of the message is received. |
This default implementation just stores them in self.headers.
Note that a 'byte' part is a message part consisting of exactly one byte.
A 'bytes' message part can contain any number of bytes. It should not be confused with a 'byte' part, which is always a single byte.
Parameters | structure | some structured data, which will be some combination of list, dict, int, and str objects. |
The default implementation just re-raises the exception.