Part of twisted.web2.resource View Source View In Hierarchy
Known subclasses: twisted.web2.auth.wrapper.UnauthorizedResource, twisted.web2.dav.resource.DAVLeafResource, twisted.web2.plugin.NoPlugin, twisted.web2.plugin.TestResource, twisted.web2.resource.RedirectResource, twisted.web2.twcgi.CGIScript, twisted.web2.twscgi.SCGIClientResource
Implements interfaces: twisted.web2.iweb.IResourceResource
with
no children.
Method | locateChild | Locate another object which can be adapted to IResource. |
Inherited from RenderMixin:
Method | allowedMethods | |
Method | checkPreconditions | Checks all preconditions imposed by this resource upon a request made |
Method | renderHTTP | See iweb.IResource.renderHTTP .
|
Method | http_OPTIONS | Respond to a OPTIONS request. |
Method | http_TRACE | Respond to a TRACE request. |
Method | http_HEAD | Respond to a HEAD request. |
Method | http_GET | Respond to a GET request. |
Method | render | Subclasses should implement this method to do page rendering. |
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.
|