Part of twisted.web.client View Source View In Hierarchy
instance describes an HTTP response received from an HTTP server.
Responseshould not be subclassed or instantiated.
|Instance Variables||version||A three-tuple describing the protocol and protocol version of the
response. The first element is of type |
|code||The HTTP status code of this response.
|phrase||The HTTP reason phrase of this response.
|headers||The HTTP response headers of this response.
|length||The number of bytes expected to be in the body of this response or
|_transport||The transport which is delivering this response.|
|_state||Indicates what state this |
|Method||_deliverBody_INITIAL||Deliver any buffered data to
|Method||_deliverBody_CONNECTED||It is invalid to attempt to deliver data to a protocol when it is already being delivered to another protocol.|
|Method||_deliverBody_DEFERRED_CLOSE||Deliver any buffered data to
|Method||_deliverBody_FINISHED||It is invalid to attempt to deliver data to a protocol after the response body has been delivered to another protocol.|
|Method||_bodyDataReceived||Called by HTTPClientParser with chunks of data from the response body. They will be buffered or delivered to the protocol passed to deliverBody.|
|Method||_bodyDataReceived_INITIAL||Buffer any data received for later delivery to a protocol passed to
|Method||_bodyDataReceived_CONNECTED||Deliver any data received to the protocol to which this
|Method||_bodyDataReceived_DEFERRED_CLOSE||It is invalid for data to be delivered after it has been indicated that the response body has been completely delivered.|
|Method||_bodyDataReceived_FINISHED||It is invalid for data to be delivered after the response bofdy has been delivered to a protocol.|
|Method||_bodyDataFinished||Called by HTTPClientParser when no more body data is available. If the optional reason is supplied, this indicates a problem or potential problem receiving all of the response body.|
|Method||_bodyDataFinished_INITIAL||Move to the
|Method||_bodyDataFinished_CONNECTED||Disconnect the protocol and move to the
|Method||_bodyDataFinished_DEFERRED_CLOSE||It is invalid to attempt to notify the
|Method||_bodyDataFinished_FINISHED||It is invalid to attempt to notify the
IProtocol provider to receive the response
IPushProducer. The protocol's
connectionLostmethod will be called with:
reasonsattribute of the exception may provide more specific indications as to why.
protocoland prepare to deliver any future data to it. Move to the
protocoland then disconnect the protocol. Move to the
Buffer any data received for later delivery to a protocol passed to
'DEFERRED_CLOSE'state to wait for a protocol to which to deliver the response body.