Skip to main content
Version: 0.2.0

ProtocolResponse

TypePrivateSource

resp: ProtocolResponse

The protocol of an HTTP response. This protocol is defined for the compatibility of different urllib3 versions.

Protocol methods

close

resp.close()

Close the HTTP response.


release_conn

resp.release_conn()

Release the connection of the HTTP response.


read

data: Any = resp.read(amt: int | None = None)

Read any amount of data from the response.

Protocol properties

headers

resp.headers: Mapping[Any, Any]

The response headers containing the metadata.