Skip to main content
server’s response to an HTTP request

Methods

close

Releases the connection back to the pool

iter_content

Iterates over the response data Returns: Iterator[str | bytes]

iter_lines

Iterates over the response data, one line at a time Returns: Iterator[str | bytes]

json

Decodes the JSON response body (if any) as a Python object Returns: Any

raise_for_status

Raises :class:HTTPError, if one occurred

Module

requests.models