__init__(self,
filelike,
status='200 OK',
headers=[],
blocksize=4096)
(Constructor)
| source code
|
- Parameters:
status (str) - is the HTTP status returned to the browser
headers ([(str, str)]) - is a list of (header, value) pairs being delivered
as HTTP headers
filelike (str or file-like) - may either be an path in the local file system or a file-like
that must support read(size) and
seek(0). If tell() is present,
seek(0, 2) and tell() will be used to
compute the content-length.
blocksize (int) - the content is provided in chunks of this size
|