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

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

Known subclasses: twisted.web2.static.File

No class docstring
Method checkPreconditions No summary
Method renderHTTP See resource.RenderMixIn.renderHTTP.

Inherited from RenderMixin:

Method allowedMethods
Method http_OPTIONS Respond to a OPTIONS request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_TRACE Respond to a TRACE request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_HEAD Respond to a HEAD request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_GET Respond to a GET request.
Method render No summary

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 at 2011-10-27 16:07:41.