HttpResponse
Index
Methods
Properties
Methods
read
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_requestorcrawlmethods).Returns bytes
read_stream
Iterate over the content of the response body in chunks.
This method should be used for responses received from the
streammethod to process large response bodies without loading them entirely into memory. It allows for efficient processing of potentially large data by yielding chunks sequentially.Returns AsyncIterator[bytes]
Properties
headers
The HTTP headers received in the response.
Define the interface that any HTTP response object must implement.