| Trees | Index | Help |
|---|
| Package WebStack :: Package Helpers :: Module Request :: Class MessageBodyStream |
|
A naive stream class, providing a non-blocking stream for transactions when
reading the message body. According to the HTTP standard, the following
things decide how long the message is:
* Use of the Content-Length header field (see 4.4 Message Length).
* Use of the Transfer-Coding header field (see 3.6 Transfer Codings),
particularly when the "chunked" coding is used.
NOTE: For now, we don't support the Transfer-Coding business.
| Method Summary | |
|---|---|
Initialise the object with the given underlying 'stream'. | |
Closes the stream. | |
Reads all remaining data from the message body. | |
Reads a single line of data from the message body. | |
Reads all remaining data from the message body, splitting it into lines and returning the data as a list of lines. | |
| Method Details |
|---|
__init__(self,
stream,
headers)
|
close(self)Closes the stream. |
read(self, limit=None)Reads all remaining data from the message body. |
readline(self, n=None)Reads a single line of data from the message body. |
readlines(self)Reads all remaining data from the message body, splitting it into lines and returning the data as a list of lines. |
| Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Mon Oct 29 00:09:23 2007 | http://epydoc.sf.net |