(self, data)
| 733 | return resp_impl |
| 734 | |
| 735 | def write(self, data): |
| 736 | assert isinstance(data, (bytes, bytearray, memoryview)), \ |
| 737 | 'data argument must be byte-ish (%r)' % type(data) |
| 738 | |
| 739 | if self._eof_sent: |
| 740 | raise RuntimeError("Cannot call write() after write_eof()") |
| 741 | if self._resp_impl is None: |
| 742 | raise RuntimeError("Cannot call write() before start()") |
| 743 | |
| 744 | if data: |
| 745 | return self._resp_impl.write(data) |
| 746 | else: |
| 747 | return () |
| 748 | |
| 749 | @asyncio.coroutine |
| 750 | def drain(self): |
no outgoing calls