Part of twisted.web2.static View Source View In Hierarchy
Known subclasses: twisted.web2.static.File, twisted.web2.dav.resource.DAVResource
| 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 |
| Parameters | request | the request to process. |
| Returns | None or a deferred whose callback value is
request.
| |
| Raises | http.HTTPError | if any precondition fails. |
See resource.RenderMixIn.renderHTTP.
This implementation automatically sets some headers on the response based on data available from MetaDataMixin methods.