Module t.w.static

Part of twisted.web View Source

Static resources for twisted.web.
Line # Kind Name Docs
31 Function isDangerous Undocumented
35 Class Data This is a static, in-memory resource.
52 Function addSlash Undocumented
64 Class Redirect Undocumented
73 Class Registry I am a Componentized object that will be made available to internal Twisted
95 Function loadMimeTypes Multiple file locations containing mime-types can be passed as a list.
134 Function getTypeAndEncoding Undocumented
147 Class File File is a resource that represents a plain non-interpreted file
469 Class FileTransfer A class to represent the transfer of a file over the network.
516 Class ASISProcessor Serve files exactly as responses without generating a status-line or any
535 Function formatFileSize Format the given file size in bytes to human readable format.
550 Class DirectoryLister Print the content of a directory.
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
def formatFileSize(size): (source)
Format the given file size in bytes to human readable format.
API Documentation for Twisted, generated by pydoctor at 2008-10-26 16:12:37.