Class t.w.r.RedirectResource(LeafResource):

Part of twisted.web2.resource View Source View In Hierarchy

Implements interfaces: twisted.web2.iweb.IResource

A LeafResource which always performs a redirect.
Line # Kind Name Docs
234 Method __init__ Parameters are URL components and are the same as those for
244 Method renderHTTP Return an IResponse or a deferred which will fire an

Inherited from LeafResource:

Line # Kind Name Docs
225 Method locateChild Locate another object which can be adapted to IResource.

Inherited from RenderMixin (via LeafResource):

Line # Kind Name Docs
19 Method allowedMethods
27 Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
89 Method http_OPTIONS Respond to a OPTIONS request.
99 Method http_TRACE Respond to a TRACE request.
107 Method http_HEAD Respond to a HEAD request.
115 Method http_GET Respond to a GET request.
130 Method render Subclasses should implement this method to do page rendering.
def __init__(self, *args, **kwargs):
Parameters are URL components and are the same as those for urlparse.urlunparse. URL components which are not specified will default to the corresponding component of the URL of the request being redirected.
def renderHTTP(self, request):
Return an IResponse or a deferred which will fire an IResponse. This response will be written to the web browser which initiated the request.