| Instance Variable |
requestheaders |
A Headers instance that stores values for all request headers. (type: Headers) |
| Instance Variable |
responseHeaders |
A Headers instance that stores values for all response headers. (type: Headers) |
| Instance Variable |
responseCode |
The response code which was passed to setResponseCode. (type: int) |
| Instance Variable |
written |
The bytes which have been written to the request. (type: list of bytes) |
| Method |
registerProducer |
Call an IPullProducer's
resumeProducing method in a loop until it unregisters
itself. |
| Method |
unregisterProducer |
Undocumented |
| Method |
__init__ |
Undocumented |
| Method |
getAllHeaders |
Return dictionary mapping the names of all received headers to the last
value received for each. |
| Method |
getHeader |
Retrieve the value of a request header. |
| Method |
setHeader |
TODO: make this assert on write() if the header is content-length |
| Method |
getSession |
Undocumented |
| Method |
render |
Render the given resource as a response to this request. |
| Method |
write |
Undocumented |
| Method |
notifyFinish |
Return a Deferred which
is called back with None
when the request is finished. This will probably only work if you haven't
called finish yet. |
| Method |
finish |
Record that the request is finished and callback and Deferreds
waiting for notification of this. |
| Method |
processingFailed |
Errback and Deferreds waiting for finish notification. |
| Method |
addArg |
Undocumented |
| Method |
setResponseCode |
Set the HTTP status response code, but takes care that this is called
before any data is written. |
| Method |
setLastModified |
Undocumented |
| Method |
setETag |
Undocumented |
| Method |
getClientAddress |
Return the IAddress
of the client that made this request. |
| Method |
getRequestHostname |
Get a dummy hostname associated to the HTTP request. |
| Method |
getHost |
Get a dummy transport's host. |
| Method |
setHost |
Change the host and port the request thinks it's using. |
| Method |
redirect |
Utility function that does a redirect. |
| Instance Variable |
_finishedDeferreds |
None
or a list of Deferreds which will be called back
with None
when finish is called or which will be errbacked if
processingFailed is called. |