wrappers
Lazy serialization and decoding wrappers for app_iter and wsgi.input objects
The wrappers module is accessible via the httpencode module.
Classes
C FileLengthWrapper(...) ...
Wraps a file-like object that has a fixed length, returning '' after the object has been exhausted.
Files are read-only
This class contains 4 members.
C FileAppIterWrapper(...) ...
Wraps a WSGI app_iter and presents a file-like interface to it.
This does not call app_iter.close() until you close the file itself.
This class contains 3 members.
C LazySerialize(...) ...
Iterator that serializes the data lazily, and returns the data as an iterator, but also allows the data to be retrieved without serialization.
This class contains 4 members.
C ReplacementInput(...) ...
A replacement for a wsgi.input file that acts as a file, but lazily serializes the data. Also, the data can be retrieved without serialization.
This class contains 7 members.
See the source for more information.