133
133
def _send_response(self, response):
134
134
"""Send a smart server response down the output stream."""
135
135
assert not self._finished, 'response already sent'
140
139
self._write_protocol_version()
141
141
self._write_func(_encode_tuple(args))
143
143
assert isinstance(body, str), 'body must be a str'