Read and decode the response content into a string.
(self)
| 451 | raise StreamAlreadyConsumed() from exc |
| 452 | |
| 453 | async def text(self) -> str: |
| 454 | """Read and decode the response content into a string.""" |
| 455 | await self.read() |
| 456 | return self.http_response.text |
| 457 | |
| 458 | async def json(self) -> object: |
| 459 | """Read and decode the JSON response content.""" |