t.w.w.WSGIResource : class documentation

Part of twisted.web.wsgi View Source View In Hierarchy

Implements interfaces: twisted.web.resource.IResource

An IResource implementation which delegates responsibility for all resources hierarchically inferior to it to a WSGI application.
Instance Variables_reactorAn IReactorThreads provider which will be passed on to _WSGIResponse to schedule calls in the I/O thread.
_threadpoolA ThreadPool which will be passed on to _WSGIResponse to run the WSGI application object.
_applicationThe WSGI application object.
Method __init__ Undocumented
Method render Turn the request into the appropriate environ dict suitable to be passed to the WSGI application object and then pass it on.
Method getChildWithDefault Reject attempts to retrieve a child resource. All path segments beyond the one which refers to this resource are handled by the WSGI application object.
Method putChild Reject attempts to add a child resource to this resource. The WSGI application object handles all path segments beneath this resource, so IResource children can never be found.
def __init__(self, reactor, threadpool, application): (source)
Undocumented
def render(self, request): (source)

Turn the request into the appropriate environ dict suitable to be passed to the WSGI application object and then pass it on.

The WSGI application object is given almost complete control of the rendering process. NOT_DONE_YET will always be returned in order and response completion will be dictated by the application object, as will the status, headers, and the response body.
def getChildWithDefault(self, name, request): (source)
Reject attempts to retrieve a child resource. All path segments beyond the one which refers to this resource are handled by the WSGI application object.
def putChild(self, path, child): (source)
Reject attempts to add a child resource to this resource. The WSGI application object handles all path segments beneath this resource, so IResource children can never be found.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:27:37.