pysite.subhandlers.downloadhandler module

class pysite.subhandlers.downloadhandler.DownloadHandler(*args, **kw)

Bases: pysite.subhandlers.BaseHandler

chunksize()

Specify a chunk-size in bytes. The chunk-size controls how much memory will be allocated during the download streaming. Low size: means low memory-consumption, but many block-reads, High size the opposite.

filename()

Re-implement to return the filename that should be used as download filename

filepath()

The path of the file to be sent

init()