class documentation

class UnauthorizedResource: (source)

Constructor: UnauthorizedResource(factories)

Implements interfaces: twisted.web.resource.IResource

View In Hierarchy

Simple IResource to escape Resource dispatch

Method __init__ Undocumented
Method getChildWithDefault Disable resource dispatch
Method putChild Put a child IResource implementor at the given path.
Method render Send www-authenticate headers to the client
Class Variable isLeaf Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.
Instance Variable _credentialFactories Undocumented
def __init__(self, factories): (source)

Undocumented

def getChildWithDefault(self, path, request): (source)

Disable resource dispatch

def putChild(self, path, child): (source)

Put a child IResource implementor at the given path.

Parameters
path

A single path component, to be interpreted relative to the path this resource is found at, at which to put the given child. For example, if resource A can be found at http://example.com/foo then a call like A.putChild(b"bar", B) will make resource B available at http://example.com/foo/bar.

The path component is not URL-encoded -- pass b'foo bar' rather than b'foo%20bar'.

childUndocumented
def render(self, request): (source)

Send www-authenticate headers to the client

Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.

_credentialFactories = (source)

Undocumented