Part of twisted.web2.iweb View Source View In Hierarchy
|Method||writeIntermediateResponse||Write a non-terminating response.|
|Method||writeHeaders||Write a final response.|
|Method||write||Write some data.|
|Method||finish||Finish the request, and clean up the connection if necessary.|
|Method||abortConnection||Forcibly abort the connection without cleanly closing.|
|Method||registerProducer||Register a producer with the standard API.|
|Method||unregisterProducer||Unregister a producer.|
|Method||getRemoteHost||Returns an address of the remote host.|
|Attribute||persistent||Whether this request supports HTTP connection persistence. May be set to False. Should not be set to other values.|
Write a non-terminating response.Intermediate responses cannot contain data. If the channel does not support intermediate responses, do nothing.
|Parameters||code||The response code. Should be in the 1xx range. (type: int )|
|headers||the headers to send in the response
|Parameters||code||The response code. Should not be in the 1xx range. (type: int )|
|headers||the headers to send in the response. They will be augmented with any
connection-oriented headers as necessary for the protocol.
|Parameters||data||the data bytes (type: str )|
Forcibly abort the connection without cleanly closing.Use if, for example, you can't write all the data you promised.
Returns an address of the remote host.Like
getHostInfo, this information may come from the real socket, or may come from additional information, depending on the transport.