Module t.w.static

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
Class StaticRenderMixin No class docstring; 2/2 methods documented
Class Data This is a static, in-memory resource.
Class File File is a resource that represents a plain non-interpreted file
Class FileSaver No class docstring; 4/5 methods documented
Function isDangerous Undocumented
Function addSlash Undocumented
Function loadMimeTypes Multiple file locations containing mime-types can be passed as a list.
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.