Skip to main content

HttpResponse

This protocol defines the interface that any HTTP response object must implement.

Index

Methods

read

  • read(): bytes
  • Read the content of the response body.


    Returns bytes

Properties

headers

headers: HttpHeaders

The HTTP headers received in the response.

http_version

http_version: str

The HTTP version used in the response.

status_code

status_code: int

The HTTP status code received from the server.

Page Options