Read and decode the response content into a string.
(self)
| 332 | raise StreamAlreadyConsumed() from exc |
| 333 | |
| 334 | def text(self) -> str: |
| 335 | """Read and decode the response content into a string.""" |
| 336 | self.read() |
| 337 | return self.http_response.text |
| 338 | |
| 339 | def json(self) -> object: |
| 340 | """Read and decode the JSON response content.""" |