twisted.web.resource.Resource.putChild(self, path, child)
method documentationtwisted.web.resource.Resource
View Source
Register a static child.
You almost certainly don't want '/' in your path. If you intended to have the root of a folder, e.g. /foo/, you want path to be ''.
Parameters | path | A single path component. (type: bytes ) |
child | The child resource to register. (type: IResource ) | |
See Also | IResource.putChild |