| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
Response
An HTTP Response, including status, headers, and body.
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
status = The HTTP Status-Code and Reason-Phrase. |
|||
header_list = A list of the HTTP response headers as (name, value) tuples. |
|||
headers = {}A dict-like object containing the response headers. |
|||
cookie = <SimpleCookie: >See help(Cookie). |
|||
body = ResponseBody()The body (entity) of the HTTP response. |
|||
time = NoneThe value of time.time() when created. |
|||
timeout = 300Seconds after which the response will be aborted. |
|||
timed_out = FalseFlag to indicate the response should be aborted, because it has exceeded its timeout. |
|||
stream = FalseIf False, buffer the response body. |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Transform headers (and cookies) into self.header_list. (Core) |
If now > self.time + self.timeout, set self.timed_out. This purposefully sets a flag, rather than raising an error, so that a monitor thread can interrupt the Response thread. |
|
|||
header_listA list of the HTTP response headers as (name, value) tuples. In general, you should use response.headers (a dict) instead. This attribute is generated from response.headers and is not valid until after the finalize phase.
|
headersA dict-like object containing the response headers. Keys are header names (in Title-Case format); however, you may get and set them in a case-insensitive manner. That is, headers['Content-Type'] and headers['content-type'] refer to the same value. Values are header values (decoded according to :rfc:`2047` if necessary). .. seealso:: classes :class:`HeaderMap`, :class:`HeaderElement`
|
timeThe value of time.time() when created. Use in HTTP dates.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Dec 2 09:59:36 2014 | http://epydoc.sourceforge.net |