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

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

This is a static, in-memory resource.
Line # Kind Name Docs
129 Method __init__ Undocumented
134 Method etag Undocumented
139 Method lastModified Undocumented
142 Method creationDate Undocumented
145 Method contentLength Undocumented
148 Method contentType Undocumented
151 Method render Subclasses should implement this method to do page rendering.

Inherited from Resource:

Line # Kind Name Docs
148 Method locateChild Locates a child resource of this resource.
173 Method child_ This method locates a child with a trailing "/" in the URL.
182 Method putChild Register a static child.
197 Method http_GET Undocumented

Inherited from RenderMixin (via Resource):

Line # Kind Name Docs
19 Method allowedMethods
27 Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
53 Method renderHTTP See iweb.IResource.renderHTTP.
89 Method http_OPTIONS Respond to a OPTIONS request.
99 Method http_TRACE Respond to a TRACE request.
107 Method http_HEAD Respond to a HEAD request.
def __init__(self, data, type):
Undocumented
def etag(self):
Undocumented
def lastModified(self):
Undocumented
def creationDate(self):
Undocumented
def contentLength(self):
Undocumented
def contentType(self):
Undocumented
def render(self, req):
Subclasses should implement this method to do page rendering. See http_GET.
Parametersrequestthe request to process.
Returnsan object adaptable to iweb.IResponse.