Read the entire content of the response body. This method loads the complete response body into memory at once. It should be used for responses received from regular HTTP requests (via `send_request` or `crawl` methods). Raises: RuntimeError: If called on a resp
(self)
| 36 | """The HTTP headers received in the response.""" |
| 37 | |
| 38 | async def read(self) -> bytes: |
| 39 | """Read the entire content of the response body. |
| 40 | |
| 41 | This method loads the complete response body into memory at once. It should be used |
| 42 | for responses received from regular HTTP requests (via `send_request` or `crawl` methods). |
| 43 | |
| 44 | Raises: |
| 45 | RuntimeError: If called on a response received from the `stream` method. |
| 46 | """ |
| 47 | |
| 48 | def read_stream(self) -> AsyncIterator[bytes]: |
| 49 | """Iterate over the content of the response body in chunks. |
no outgoing calls