Decode the response body as UTF-8 text. Returns: The response body as a string.
(self)
| 80 | return json.loads(self._body) |
| 81 | |
| 82 | def text(self) -> str: |
| 83 | """Decode the response body as UTF-8 text. |
| 84 | |
| 85 | Returns: |
| 86 | The response body as a string. |
| 87 | """ |
| 88 | return self._body.decode("utf-8") |
| 89 | |
| 90 | def body(self) -> bytes: |
| 91 | """Return the raw response body bytes. |