Read and decode the response content into a string.
(self)
| 432 | raise StreamAlreadyConsumed() from exc |
| 433 | |
| 434 | async def text(self) -> str: |
| 435 | """Read and decode the response content into a string.""" |
| 436 | await self.read() |
| 437 | return self.http_response.text |
| 438 | |
| 439 | async def json(self) -> object: |
| 440 | """Read and decode the JSON response content.""" |