87
87
def call_with_body_bytes_expecting_body(self, method, args, body):
88
88
"""Call a method on the remote server with body bytes."""
90
90
raise TypeError('method must be a byte string, not %r' % (method,))
93
93
raise TypeError('args must be byte strings, not %r' % (args,))
95
95
raise TypeError('body must be byte string, not %r' % (body,))
96
96
response, response_handler = self._call_and_read_response(
97
97
method, args, body=body, expect_response_body=True)