class documentation
I am a resource which represents named virtual hosts.
Method | __init__ |
Initialize. |
Method | add |
Add a host to this virtual host. |
Method | get |
Implementation of resource.Resource's getChild method. |
Method | get |
Undocumented |
Method | list |
Undocumented |
Method | remove |
Remove a host. |
Method | render |
Implementation of resource.Resource's render method. |
Class Variable | default |
Undocumented |
Instance Variable | hosts |
Undocumented |
Method | _get |
(Internal) Get the appropriate resource for the given host. |
Inherited from Resource
:
Method | del |
Undocumented |
Method | get |
Deprecated in favor of getChildForRequest . |
Method | get |
Retrieve a static or dynamically generated child resource from me. |
Method | get |
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 | is |
Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource. |
Class Variable | server |
Undocumented |
Instance Variable | children |
Undocumented |
Add a host to this virtual host.
This will take a host named `name', and map it to a resource `resrc'. For example, a setup for our virtual hosts would be:
nvh.addHost('divunal.com', divunalDirectory) nvh.addHost('www.divunal.com', divunalDirectory) nvh.addHost('twistedmatrix.com', twistedMatrixDirectory) nvh.addHost('www.twistedmatrix.com', twistedMatrixDirectory)
overrides
twisted.web.resource.Resource.getChild
Implementation of resource.Resource's getChild method.