class FileWrapper:
This class can be used to convert a file
-like object into
an iterable. It yields buffer_size
blocks until the file is fully
read.
You should not use this class directly but rather use the
wrap_file
function that uses the WSGI server's file wrapper
support if it's available.
If you're using this object together with a Response
you have
to use the direct_passthrough
mode.
Parameters | |
file | a file -like object with a ~file.read method. |
buffer_size | number of bytes for one iteration. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | close |
Undocumented |
Method | seek |
Undocumented |
Method | seekable |
Undocumented |
Method | tell |
Undocumented |
Instance Variable | buffer_size |
Undocumented |
Instance Variable | file |
Undocumented |