class twisted.web.iweb.IResponse(Interface): (source)
Known implementations: twisted.web.client.Response
An object representing an HTTP response received from an HTTP server.
|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
|Method||setPreviousResponse||Set the reference to the previous
IProtocol provider to receive the response body.
The protocol will be connected to a transport which provides
IPushProducer. The protocol's
connectionLost method will be called with:
reasonsattribute of the exception may provide more specific indications as to why.