GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Crawlee for Python
  • Docs
  • API
  • Changelog
  • Blog
  • Next
  • 0.6
  • Autoscaling
  • Browser management
  • Configuration
  • Crawlers
  • Crawling contexts
  • Errors
  • Event data

This view

  • Original page
  • New address

GeezerVison is showing crawlee.dev — HttpResponse | API | Crawlee for Python · Fast, reliable Python web crawlers.

Version: 1.11

Define the interface that any HTTP response object must implement.

Index

Methods

  • read
  • read_stream

Properties

  • headers
  • http_version
  • status_code

Methods

read

  • async read(): bytes
  • 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).


    Returns bytes

read_stream

  • read_stream(): AsyncIterator[bytes]
  • Iterate over the content of the response body in chunks.

    This method should be used for responses received from the stream method 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

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
Hide Inherited
  • read
  • read_stream
  • headers
  • http_version
  • status_code
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.