Public Member Functions | Public Attributes | Properties | Private Member Functions | Private Attributes
tornado.httpclient.HTTPResponse Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def rethrow

Public Attributes

 buffer
 code
 effective_url
 error
 headers
 request
 request_time
 time_info

Properties

 body = property(_get_body)

Private Member Functions

def _get_body

Private Attributes

 _body

Detailed Description

HTTP Response object.

Attributes:

* request: HTTPRequest object

* code: numeric HTTP status code, e.g. 200 or 404

* headers: httputil.HTTPHeaders object

* buffer: cStringIO object for response body

* body: respose 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 325 of file httpclient.py.


Constructor & Destructor Documentation

def tornado.httpclient.HTTPResponse.__init__ (   self,
  request,
  code,
  headers = None,
  buffer = None,
  effective_url = None,
  error = None,
  request_time = None,
  time_info = None 
)

Definition at line 350 of file httpclient.py.


Member Function Documentation

Definition at line 390 of file httpclient.py.

Definition at line 375 of file httpclient.py.

If there was an error on the request, raise an `HTTPError`.

Definition at line 385 of file httpclient.py.


Member Data Documentation

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.

Definition at line 350 of file httpclient.py.


Property Documentation

Definition at line 383 of file httpclient.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:14