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

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

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

No class docstring
Method checkPreconditions Checks all preconditions imposed by this resource upon a request made
Method renderHTTP See resource.RenderMixIn.renderHTTP.

Inherited from RenderMixin:

Method allowedMethods
Method http_OPTIONS Respond to a OPTIONS request.
Method http_TRACE Respond to a TRACE request.
Method http_HEAD Respond to a HEAD request.
Method http_GET Respond to a GET request.
Method render Subclasses should implement this method to do page rendering.

Inherited from MetaDataMixin:

Method etag
Method lastModified
Method creationDate
Method contentLength
Method contentType
Method contentEncoding
Method displayName
Method exists
def checkPreconditions(self, request): (source)
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): (source)

See resource.RenderMixIn.renderHTTP.

This implementation automatically sets some headers on the response based on data available from MetaDataMixin methods.
API Documentation for twisted, generated by pydoctor.