class documentation

class DummyRequestForLogTest(DummyRequest): (source)

View In Hierarchy

Undocumented

Method getClientIP As getClientIP is deprecated, no log formatter should call it.
Class Variable client Undocumented
Class Variable clientproto Undocumented
Class Variable code Undocumented
Class Variable sentLength Undocumented
Class Variable uri Undocumented

Inherited from DummyRequest:

Method __init__ Undocumented
Method addArg Undocumented
Method finish Record that the request is finished and callback and Deferreds waiting for notification of this.
Method getAllHeaders Return dictionary mapping the names of all received headers to the last value received for each.
Method getClientAddress Return the IAddress of the client that made this request.
Method getHeader Retrieve the value of a request header.
Method getHost Get a dummy transport's host.
Method getRequestHostname Get a dummy hostname associated to the HTTP request.
Method getSession 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 processingFailed Errback and Deferreds waiting for finish notification.
Method redirect Utility function that does a redirect.
Method registerProducer Call an IPullProducer's resumeProducing method in a loop until it unregisters itself.
Method render Render the given resource as a response to this request.
Method setETag Undocumented
Method setHeader TODO: make this assert on write() if the header is content-length
Method setHost Change the host and port the request thinks it's using.
Method setLastModified Undocumented
Method setResponseCode Set the HTTP status response code, but takes care that this is called before any data is written.
Method unregisterProducer Undocumented
Method write Undocumented
Class Variable method Undocumented
Instance Variable args Undocumented
Instance Variable finished Undocumented
Instance Variable go Undocumented
Instance Variable postpath Undocumented
Instance Variable prepath Undocumented
Instance Variable protoSession Undocumented
Instance Variable requestheaders A Headers instance that stores values for all request headers.
Instance Variable requestHeaders Undocumented
Instance Variable responseCode The response code which was passed to setResponseCode.
Instance Variable responseHeaders A Headers instance that stores values for all response headers.
Instance Variable responseMessage Undocumented
Instance Variable session Undocumented
Instance Variable sitepath Undocumented
Instance Variable written The bytes which have been written to the request.
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.
Instance Variable _forceSSL Undocumented
Instance Variable _serverName Undocumented