t.w.static : module documentation

Part of twisted.web View Source

Static resources for twisted.web.
Function isDangerous Undocumented
Class Data This is a static, in-memory resource.
Function addSlash Undocumented
Class Redirect Undocumented
Class Registry I am a Componentized object that will be made available to internal Twisted
Function loadMimeTypes Multiple file locations containing mime-types can be passed as a list.
Function getTypeAndEncoding Undocumented
Class File File is a resource that represents a plain non-interpreted file
Class StaticProducer Superclass for classes that implement the business of producing.
Class NoRangeStaticProducer A StaticProducer that writes the entire file to the request.
Class SingleRangeStaticProducer A StaticProducer that writes a single chunk of a file to the request.
Class MultipleRangeStaticProducer A StaticProducer that writes several chunks of a file to the request.
Class FileTransfer A class to represent the transfer of a file over the network.
Class ASISProcessor Serve files exactly as responses without generating a status-line or any
Function formatFileSize Format the given file size in bytes to human readable format.
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 2010-07-05 15:03:32.