Part of twisted.web.iweb View Source View In Hierarchy
Known implementations: twisted.web._newclient.Response
|Attribute||version||A three-tuple describing the protocol and protocol version of the
response. The first element is of type
|Attribute||code||The HTTP status code of this response, as a
|Attribute||phrase||The HTTP reason phrase of this response, as a
|Attribute||headers||The HTTP response
str, the second and third are of type
int. For example,
('HTTP', 1, 1).
Headersof this response.
intnumber of bytes expected to be in the body of this response or
UNKNOWN_LENGTHif the server did not indicate how many bytes to expect. For HEAD responses, this will be 0; if the response includes a Content-Length header, it will be available in
provider to receive the response body.
The protocol will be connected to a transport which provides
connectionLost method will be called with:
reasonsattribute of the exception may provide more specific indications as to why.