Home | Trees | Index | Help |
|
---|
Package Pyblosxom :: Module pyblosxom :: Class Response |
|
object
--+
|
Response
Response class to handle all output related tasks in one place.
This class is basically a wrapper arround a StringIO instance. It also provides methods for managing http headers.Method Summary | |
---|---|
Sets the Request object that leaded to this
response. | |
Can't copy the __iter__ method over from the StringIO instance cause iter looks for the method in the class instead of the instance. | |
Populates the HTTP header with lines of text. | |
dict |
Returns the headers of this response. |
Returns the status code and message of this response. | |
Send the response body to the given output stream. | |
Send HTTP Headers to the given output stream. | |
Sets the status code for this response. | |
Copies methods from the underlying output buffer to the response object. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
request)
Sets the |
__iter__(self)Can't copy the __iter__ method over from the StringIO instance cause iter looks for the method in the class instead of the instance. So can't do this with __copy_members, have to define it seperatly. See http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252151 |
addHeader(self, *args)Populates the HTTP header with lines of text. Sets the status code on this response object if the given argument list containes a 'Status' header.
|
getHeaders(self)Returns the headers of this response.
|
getStatus(self)Returns the status code and message of this response.
|
sendBody(self, out)Send the response body to the given output stream.
|
sendHeaders(self, out)Send HTTP Headers to the given output stream.
|
setStatus(self, status)Sets the status code for this response.
|
__copy_members(self)Copies methods from the underlying output buffer to the response object. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Feb 7 21:43:57 2006 | http://epydoc.sf.net |