Read response payload and decode.
(self, encoding=None)
| 732 | |
| 733 | @asyncio.coroutine |
| 734 | def text(self, encoding=None): |
| 735 | """Read response payload and decode.""" |
| 736 | if self._content is None: |
| 737 | yield from self.read() |
| 738 | |
| 739 | if encoding is None: |
| 740 | encoding = self._get_encoding() |
| 741 | |
| 742 | return self._content.decode(encoding) |
| 743 | |
| 744 | @asyncio.coroutine |
| 745 | def json(self, *, encoding=None, loads=json.loads): |
nothing calls this directly
no test coverage detected