Read and decode the response content into a string.
(self)
| 344 | raise StreamAlreadyConsumed() from exc |
| 345 | |
| 346 | def text(self) -> str: |
| 347 | """Read and decode the response content into a string.""" |
| 348 | self.read() |
| 349 | return self.http_response.text |
| 350 | |
| 351 | def json(self) -> object: |
| 352 | """Read and decode the JSON response content.""" |