t.w.static : module documentation

Part of twisted.web2 View Source

I deal with static resources.
Class MetaDataMixin Mix-in class for iweb.IResource which provides methods for accessing resource metadata specified by HTTP.
Class StaticRenderMixin No class docstring; 1/2 methods documented
Class Data This is a static, in-memory resource.
Class File No summary
Class FileSaver No class docstring; 3/5 methods documented
Function isDangerous Undocumented
Function addSlash Undocumented
Function loadMimeTypes No summary
Function getTypeAndEncoding Undocumented
def isDangerous(path): (source)
Undocumented
def addSlash(request): (source)
Undocumented
def loadMimeTypes(mimetype_locations='/etc/mime.types'): (source)
Multiple file locations containing mime-types can be passed as a list. The files will be sourced in that order, overriding mime-types from the files sourced beforehand, but only if a new entry explicitly overrides the current entry.
def getTypeAndEncoding(filename, types, encodings, defaultType): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.