HttpResponse
Index
Methods
aclose
Close the response and release the connection asynchronously.
Returns None
aiter_bytes
Iterate over the response body in bytes chunks asynchronously.
Returns AsyncIterator[bytes]
aread
Read the entire response body asynchronously.
Returns bytes
close
Close the response and release the connection.
Returns None
iter_bytes
Iterate over the response body in bytes chunks.
Returns Iterator[bytes]
json
Parse response body as JSON.
Returns Any
read
Read the entire response body.
Returns bytes
Properties
content
Raw response body as bytes.
headers
Response headers as a mapping.
status_code
HTTP status code of the response.
text
Response body decoded as text.
Protocol for HTTP response objects returned by HTTP clients.
Any object that has the required attributes and methods can be used as an HTTP response (e.g.,
impit.Response). This enables custom HTTP client implementations to return their own response types.