twisted.web.clientView Source (View In Hierarchy)
Implements interfaces: twisted.web.iweb.IResponse
|Method||setPreviousResponse||Set the reference to the previous
|Instance Variable||_state||Indicates what state this
|Class Method||_construct||Private constructor.|
|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_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 body has been delivered to a protocol.|
|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
listof the strings passed to
Responseinstance is in, particularly with respect to delivering bytes from the response body to an application-supplied protocol object. This may be one of
'FINISHED', with the following meanings:
Responseobjects start in. No protocol has yet been provided and the underlying transport may still have bytes to deliver to it.
Responsemoves to this state. Data is buffered and waiting for a protocol to be delivered to.
Responsemoves to this state. Any buffered data is delivered and any data which arrives from the transport subsequently is given directly to the protocol.
Responsemoves to this state after delivering all buffered data to the protocol. Otherwise, if the
Responseis in the CONNECTED state, if the transport indicates there is no more data, the
Responsemoves to this state. Nothing else can happen once the
Responseis in this state.
|Parameters||version||HTTP version components protocol, major, minor. E.g. |
|code||HTTP status code. (type: |
|phrase||HTTP reason phrase, intended to give a short description of the HTTP status code.|
|headers||HTTP response headers. (type: |
|_transport||The transport which is delivering this response.|
Deliver any buffered data to
protocol and prepare to deliver any future data to it. Move to the
It is invalid to attempt to deliver data to a protocol when it is already being delivered to another protocol.
Deliver any buffered data to
protocol and then disconnect the protocol. Move to the
It is invalid to attempt to deliver data to a protocol after the response body has been delivered to another protocol.
Buffer any data received for later delivery to a protocol passed to
Little or no data should be buffered by this method, since the transport has been paused and will not be resumed until a protocol is supplied.
Deliver any data received to the protocol to which this
Response is connected.
It is invalid for data to be delivered after it has been indicated that the response body has been completely delivered.
It is invalid for data to be delivered after the response body has been delivered to a protocol.
Move to the
'DEFERRED_CLOSE' state to wait for a protocol to which to deliver the response body.
Disconnect the protocol and move to the