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

List of all members.

Public Member Functions

def data_received
def finish
def headers_received
def on_connection_close

Detailed Description

Implement this interface to handle an HTTP request or response.

.. versionadded:: 4.0

Definition at line 491 of file httputil.py.


Member Function Documentation

def rosbridge_tools.tornado.httputil.HTTPMessageDelegate.headers_received (   self,
  start_line,
  headers 
)
Called when the HTTP headers have been received and parsed.

:arg start_line: a `.RequestStartLine` or `.ResponseStartLine`
    depending on whether this is a client or server message.
:arg headers: a `.HTTPHeaders` instance.

Some `.HTTPConnection` methods can only be called during
``headers_received``.

May return a `.Future`; if it does the body will not be read
until it is done.

Reimplemented in rosbridge_tools.tornado.web._RequestDispatcher, rosbridge_tools.tornado.websocket.WebSocketClientConnection, rosbridge_tools.tornado.http1connection._GzipMessageDelegate, rosbridge_tools.tornado.simple_httpclient._HTTPConnection, and rosbridge_tools.tornado.httpserver._ServerRequestAdapter.

Definition at line 496 of file httputil.py.

Called if the connection is closed without finishing the request.

If ``headers_received`` is called, either ``finish`` or
``on_connection_close`` will be called, but not both.

Reimplemented in rosbridge_tools.tornado.web._RequestDispatcher, rosbridge_tools.tornado.websocket.WebSocketClientConnection, rosbridge_tools.tornado.http1connection._GzipMessageDelegate, rosbridge_tools.tornado.simple_httpclient._HTTPConnection, and rosbridge_tools.tornado.httpserver._ServerRequestAdapter.

Definition at line 522 of file httputil.py.


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


rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sun Dec 28 2014 11:43:22