Latest Version: 0.9.6.2

FileApp

Returns an application that will send the file at the given filename. Adds a mime type based on mimetypes.guess_type(). See DataApp for the arguments beyond filename.


Attributes

a allowed_methods

('GET', 'HEAD')

Methods

f __call__(self, environ, start_response) ...

f __init__(self, filename, headers=None, **kwargs) ...

f cache_control(self, **kwargs) ...

f content_disposition(self, **kwargs) ...

f get(self, environ, start_response) ...

f guess_type(self) ...

f set_content(self, content, last_modified=None) ...

f update(self, force=False) ...

See the source for more information.

Top