Part of twisted.web2.wsgi View Source View In Hierarchy
|Method||read||Read at most size bytes from the input, or less if EOF is encountered. If size is ommitted or negative, read until EOF.|
|Method||readline||Read a line, delimited by a newline. If the stream reaches EOF or size bytes have been read before reaching a newline (if size is given), the partial line is returned.|
|Method||readlines||Read until EOF, collecting all lines in a list, and returns that list. The hint argument is ignored (as is allowed in the API specification)|
|Method||__iter__||Returns an iterator, each iteration of which returns the result of readline(), and stops when readline() returns an empty string.|
Read a line, delimited by a newline. If the stream reaches EOF or size bytes have been read before reaching a newline (if size is given), the partial line is returned.COMPATIBILITY NOTE: the size argument is excluded from the WSGI specification, but is provided here anyhow, because useful libraries such as python stdlib's cgi.py assume their input file-like-object supports readline with a size argument. If you use it, be aware your application may not be portable to other conformant WSGI servers.