Part of twisted.web2.resource View Source View In Hierarchy
Known subclasses: twisted.web2.log.LogWrapperResource
Implements interfaces: twisted.web2.iweb.IResource
iweb.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, |