Skip to main content

HttpResponse

crawlee.http_clients._base.HttpResponse

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

Index

Methods

Properties

Methods

read

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


    Returns bytes

Properties

headers

headers: dict[str, str]

The HTTP headers received in the response.

status_code

status_code: int

The HTTP status code received from the server.