Class t.w.s.StaticRenderMixin(resource.RenderMixin, MetaDataMixin):

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

Known subclasses: twisted.web2.static.File, twisted.web2.dav.resource.DAVResource

Undocumented
Line # Kind Name Docs
77 Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
92 Method renderHTTP See resource.RenderMixIn.renderHTTP.

Inherited from RenderMixin:

Line # Kind Name Docs
19 Method allowedMethods
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.
115 Method http_GET Respond to a GET request.
130 Method render Subclasses should implement this method to do page rendering.

Inherited from MetaDataMixin:

Line # Kind Name Docs
28 Method etag
34 Method lastModified
40 Method creationDate
46 Method contentLength
52 Method contentType
58 Method contentEncoding
64 Method displayName
70 Method exists
def checkPreconditions(self, request):
Checks all preconditions imposed by this resource upon a request made against it.
Parametersrequestthe request to process.
ReturnsNone or a deferred whose callback value is request.
Raiseshttp.HTTPErrorif any precondition fails.
def renderHTTP(self, request):

See resource.RenderMixIn.renderHTTP.

This implementation automatically sets some headers on the response based on data available from MetaDataMixin methods.