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 | getHostInfo | Returns a tuple of (address, socket user connected to, |
| 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. |
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
(type: twisted.web.http_headers.Headers
) |
| 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
) |
Use if, for example, you can't write all the data you promised.
Like getHostInfo,
this information may come from the real socket, or may come from additional
information, depending on the transport.