Public Member Functions
tornado.httputil.HTTPConnection Class Reference
Inheritance diagram for tornado.httputil.HTTPConnection:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def finish
def write
def write_headers

Detailed Description

Applications use this interface to write their responses.

.. versionadded:: 4.0

Definition at line 531 of file httputil.py.


Member Function Documentation

Indicates that the last body data has been written.

Reimplemented in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.

Definition at line 558 of file httputil.py.

def tornado.httputil.HTTPConnection.write (   self,
  chunk,
  callback = None 
)
Writes a chunk of body data.

The callback will be run when the write is complete.  If no callback
is given, returns a Future.

Reimplemented in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.

Definition at line 550 of file httputil.py.

def tornado.httputil.HTTPConnection.write_headers (   self,
  start_line,
  headers,
  chunk = None,
  callback = None 
)
Write an HTTP header block.

:arg start_line: a `.RequestStartLine` or `.ResponseStartLine`.
:arg headers: a `.HTTPHeaders` instance.
:arg chunk: the first (optional) chunk of data.  This is an optimization
    so that small responses can be written in the same call as their
    headers.
:arg callback: a callback to be run when the write is complete.

Returns a `.Future` if no callback is given.

Reimplemented in tornado.http1connection.HTTP1Connection, and tornado.wsgi._WSGIConnection.

Definition at line 536 of file httputil.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40