class documentation
Redirect to the nearest directory and strip any query string.
This generates redirects like:
/ → /
/foo → /
/foo?bar → /
/foo/ → /foo/
/foo/bar → /foo/
/foo/bar?baz → /foo/
However, the generated Location header contains an absolute URL rather than a path.
The response is the same regardless of HTTP method.
| Method | render |
Respond to all requests by redirecting to nearest directory. |
| Class Variable | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Inherited from Resource:
| Method | __init__ |
Initialize. |
| Method | del |
Undocumented |
| Method | get |
Retrieve a 'child' resource from me. |
| Method | get |
Deprecated in favor of getChildForRequest. |
| Method | get |
Retrieve a static or dynamically generated child resource from me. |
| Method | get |
Undocumented |
| Method | get |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | list |
Undocumented |
| Method | put |
Register a static child. |
| Method | really |
Undocumented |
| Method | render_ |
Default handling of HEAD method. |
| Class Variable | allowed |
Undocumented |
| Class Variable | server |
Undocumented |
| Instance Variable | children |
Undocumented |
overrides
twisted.web.resource.Resource.renderRespond to all requests by redirecting to nearest directory.
overrides
twisted.web.resource.Resource.isLeafSignal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.