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
 reason
 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

* 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.


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,
  reason = None 
)

Definition at line 522 of file httpclient.py.


Member Function Documentation

Definition at line 567 of file httpclient.py.

Definition at line 552 of file httpclient.py.

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

Definition at line 562 of file httpclient.py.


Member Data Documentation

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.


Property Documentation

Definition at line 560 of file httpclient.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Wed Sep 13 2017 03:18:20