Public Member Functions | |
def | __init__ |
def | __repr__ |
def | rethrow |
Public Attributes | |
buffer | |
code | |
effective_url | |
error | |
headers | |
reason | |
request | |
request_time | |
time_info | |
Properties | |
body = property(_get_body) | |
Private Member Functions | |
def | _get_body |
Private Attributes | |
_body |
HTTP Response object. Attributes: * request: HTTPRequest object * code: numeric HTTP status code, e.g. 200 or 404 * reason: human-readable reason phrase describing the status code * headers: `tornado.httputil.HTTPHeaders` object * effective_url: final location of the resource after following any redirects * buffer: ``cStringIO`` object for response body * body: response body as string (created on demand from ``self.buffer``) * error: Exception object, if any * request_time: seconds from request start to finish * time_info: dictionary of diagnostic timing information from the request. Available data are subject to change, but currently uses timings available from http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html, plus ``queue``, which is the delay (if any) introduced by waiting for a slot under `AsyncHTTPClient`'s ``max_clients`` setting.
Definition at line 492 of file httpclient.py.
def tornado.httpclient.HTTPResponse.__init__ | ( | self, | |
request, | |||
code, | |||
headers = None , |
|||
buffer = None , |
|||
effective_url = None , |
|||
error = None , |
|||
request_time = None , |
|||
time_info = None , |
|||
reason = None |
|||
) |
Definition at line 522 of file httpclient.py.
def tornado.httpclient.HTTPResponse.__repr__ | ( | self | ) |
Definition at line 567 of file httpclient.py.
def tornado.httpclient.HTTPResponse._get_body | ( | self | ) | [private] |
Definition at line 552 of file httpclient.py.
def tornado.httpclient.HTTPResponse.rethrow | ( | self | ) |
If there was an error on the request, raise an `HTTPError`.
Definition at line 562 of file httpclient.py.
tornado::httpclient.HTTPResponse::_body [private] |
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
Definition at line 522 of file httpclient.py.
tornado::httpclient.HTTPResponse::body = property(_get_body) [static] |
Definition at line 560 of file httpclient.py.