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. Use if, for example, you can't write all the data you promised. |
Method | registerProducer | Register a producer with the standard API. |
Method | unregisterProducer | Unregister a producer. |
Method | getHostInfo | No summary |
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 | (type: int ) |
headers | (type: twisted.web.http_headers.Headers
) | |
Instance Variables | code | The response code. Should be in the 1xx range. |
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.
(type: twisted.web.http_headers.Headers
) |
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.