Go to the latest version of this document.

# ``twisted`.`web`.`demo`.`Test``

class documentation

`class Test(static.Data): (source)`

Constructor: `Test()`

View In Hierarchy

Undocumented

Method | `__init__` | No summary
Class Variable | `isLeaf` | Signal if this IResource implementor is a "leaf node" or not. If True, getChildWithDefault will not be called on this Resource.

Inherited from `Data`:

Method | `render_GET` | Undocumented
Instance Variable | `data` | Undocumented
Instance Variable | `type` | Undocumented

Inherited from `Resource` (via `Data`):

Method | `delEntity` | Undocumented
Method | `getChild` | Retrieve a 'child' resource from me.
Method | `getChildForRequest` | Deprecated in favor of `getChildForRequest`.
Method | `getChildWithDefault` | Retrieve a static or dynamically generated child resource from me.
Method | `getDynamicEntity` | Undocumented
Method | `getStaticEntity` | Undocumented
Method | `listDynamicEntities` | Undocumented
Method | `listDynamicNames` | Undocumented
Method | `listEntities` | Undocumented
Method | `listNames` | Undocumented
Method | `listStaticEntities` | Undocumented
Method | `listStaticNames` | Undocumented
Method | `putChild` | Register a static child.
Method | `reallyPutEntity` | Undocumented
Method | `render` | Render a given resource. See `IResource`'s render method.
Method | `render_HEAD` | Default handling of HEAD method.
Class Variable | `allowedMethods` | Undocumented
Class Variable | `server` | Undocumented
Instance Variable | `children` | Undocumented

def __init__(self): (source)
overrides `twisted.web.static.Data.__init__`

Parameters
data:`bytes` | The bytes that make up this data resource.
type:`str` | A native string giving the Internet media type for this content.

isLeaf: `bool` = (source)
from `twisted.web.resource.IResource`
overrides `twisted.web.resource.Resource.isLeaf`

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