Class t.w.s.Data(resource.Resource):

Part of twisted.web2.static View Source View In Hierarchy

This is a static, in-memory resource.
Method __init__ Undocumented
Method etag Undocumented
Method lastModified Undocumented
Method creationDate Undocumented
Method contentLength Undocumented
Method contentType Undocumented
Method render Subclasses should implement this method to do page rendering.

Inherited from Resource:

Method locateChild Locates a child resource of this resource.
Method child_ This method locates a child with a trailing "/" in the URL.
Method putChild Register a static child.
Method http_GET Respond to a GET request.

Inherited from RenderMixin (via Resource):

Method allowedMethods
Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
Method renderHTTP See iweb.IResource.renderHTTP.
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.
def __init__(self, data, type): (source)
Undocumented
def etag(self): (source)
Undocumented
def lastModified(self): (source)
Undocumented
def creationDate(self): (source)
Undocumented
def contentLength(self): (source)
Undocumented
def contentType(self): (source)
Undocumented
def render(self, req): (source)
Subclasses should implement this method to do page rendering. See http_GET.
Parametersrequestthe request to process.
Returnsan object adaptable to iweb.IResponse.
API Documentation for twisted, generated by pydoctor.