Part of bzrlib.smart.client View In Hierarchy
Known subclasses: bzrlib.tests.test_remote.FakeClient
Method | __init__ | Constructor. |
Method | __repr__ | Undocumented |
Method | call | Call a method on the remote server. |
Method | call_expecting_body | Call a method and return the result and the protocol object. |
Method | call_with_body_bytes | Call a method on the remote server with body bytes. |
Method | call_with_body_bytes_expecting_body | Call a method on the remote server with body bytes. |
Method | call_with_body_readv_array | Undocumented |
Method | call_with_body_stream | Undocumented |
Method | remote_path_from_transport | Convert transport into a path suitable for using in a request. |
Method | _send_request | Undocumented |
Method | _run_call_hooks | Undocumented |
Method | _call_and_read_response | Undocumented |
Method | _construct_protocol | Undocumented |
Parameters | medium | a SmartClientMedium |
Call a method and return the result and the protocol object.
The body can be read like so:
result, smart_protocol = smart_client.call_expecting_body(...) body = smart_protocol.read_body_bytes()