Part of bzrlib.smart.protocol View In Hierarchy
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. |
This should only be called once.
Version two sends the value of REQUEST_VERSION_TWO.