Home | Trees | Indices | Help |
|
---|
|
object --+ | Response
An HTTP Response, including status, headers, and body. Application developers should use Response.headers (a dict) to set or modify HTTP response headers. When the response is finalized, Response.headers is transformed into Response.header_list as (key, value) tuples. body [= <cherrypy._cprequest.Body object at 0x1d90a50>]: The body (entity) of the HTTP response. cookie [= <SimpleCookie: >]: See help(Cookie). header_list [= []]: A list of the HTTP response headers as (name, value) tuples. In general, you should use response.headers (a dict) instead. headers [= {}]: A 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). See also: http.HeaderMap, http.HeaderElement. status [= '']: The HTTP Status-Code and Reason-Phrase. stream [= False]: If False, buffer the response body. time [= None]: The value of time.time() when created. Use in HTTP dates. timed_out [= False]: Flag to indicate the response should be aborted, because it has exceeded its timeout. timeout [= 300]: Seconds after which the response will be aborted.
|
|||
__metaclass__ Metaclass for declaring docstrings for class attributes. |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
status =
|
|||
status__doc = """The HTTP Status-Code and Reason-Phrase."""
|
|||
header_list =
|
|||
header_list__doc =
|
|||
headers = {}
|
|||
headers__doc =
|
|||
cookie = <SimpleCookie: >
|
|||
cookie__doc = """See help(Cookie)."""
|
|||
body = Body()
|
|||
body__doc = """The body (entity) of the HTTP response."""
|
|||
time = None hash(x) |
|||
time__doc = """The value of time.time() when created. Use in H
|
|||
timeout = 300
|
|||
timeout__doc = """Seconds after which the response will be abo
|
|||
timed_out = False
|
|||
timed_out__doc =
|
|||
stream = False
|
|||
stream__doc = """If 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_list__doc
|
headers__doc
|
time__doc
|
timeout__doc
|
timed_out__doc
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 19 14:12:26 2013 | http://epydoc.sourceforge.net |