Data structuresHttpResponseOn this pageHttpResponse This protocol defines the interface that any HTTP response object must implement.Index MethodsreadPropertiesheadershttp_versionstatus_codeMethods read read(): bytesRead the content of the response body.Returns bytesProperties headersheaders: HttpHeadersThe HTTP headers received in the response.http_versionhttp_version: strThe HTTP version used in the response.status_codestatus_code: intThe HTTP status code received from the server.
This protocol defines the interface that any HTTP response object must implement.