class documentation
class Data(resource.Resource): (source)
Known subclasses: twisted.web.demo.Test
Constructor: Data(data, type)
This is a static, in-memory resource.
| Method | __init__ |
No summary |
| Method | render_ |
Undocumented |
| Instance Variable | data |
Undocumented |
| Instance Variable | type |
Undocumented |
Inherited from Resource:
| 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 |
Render a given resource. See IResource's render method. |
| Method | render_ |
Default handling of HEAD method. |
| Class Variable | allowed |
Undocumented |
| 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 |
overrides
twisted.web.resource.Resource.__init__overridden in
twisted.web.demo.Test| Parameters | |
data:bytes | The bytes that make up this data resource. |
type:str | A native string giving the Internet media type for this content. |