Part of twisted.web2.resource View Source View In Hierarchy
Known subclasses: twisted.web2.log.LogWrapperResource
Implements interfaces: twisted.web2.iweb.IResourceiweb.IResource
implementation which wraps a RenderMixin
instance and provides a hook in which a subclass can implement logic that
is called before request processing on the contained Resource
.
Method | __init__ | Undocumented |
Method | hook | Override this method in order to do something before passing control on |
Method | locateChild | Locate another object which can be adapted to IResource. |
Method | renderHTTP | Return an IResponse or a deferred which will fire an |
renderHTTP
and
locateChild
methods.
Returns | None or a Deferred . If a deferred object is returned,
it's value is ignored, but renderHTTP and
locateChild are chained onto the deferred as callbacks.
|
Returns | A 2-tuple of (resource, remaining-path-segments), or a deferred which will fire the above. Causes the object publishing machinery to continue on with specified resource and segments, calling the appropriate method on the specified resource. If you return (self,server.StopTraversal ),
this instructs web2 to immediately stop the lookup stage, and switch to
the rendering stage, leaving the remaining path alone for your render
function to handle.
|