Public Member Functions | Public Attributes | Private Attributes
rosbridge_tools.tornado.web.FallbackHandler Class Reference
Inheritance diagram for rosbridge_tools.tornado.web.FallbackHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def initialize
def prepare

Public Attributes

 fallback

Private Attributes

 _finished

Detailed Description

A `RequestHandler` that wraps another HTTP server callback.

The fallback is a callable object that accepts an
`~.httputil.HTTPServerRequest`, such as an `Application` or
`tornado.wsgi.WSGIContainer`.  This is most useful to use both
Tornado ``RequestHandlers`` and WSGI in the same server.  Typical
usage::

    wsgi_app = tornado.wsgi.WSGIContainer(
        django.core.handlers.wsgi.WSGIHandler())
    application = tornado.web.Application([
        (r"/foo", FooHandler),
        (r".*", FallbackHandler, dict(fallback=wsgi_app),
    ])

Definition at line 2478 of file web.py.


Member Function Documentation

Definition at line 2494 of file web.py.

Called at the beginning of a request before  `get`/`post`/etc.

Override this method to perform common initialization regardless
of the request method.

Asynchronous support: Decorate this method with `.gen.coroutine`
or `.return_future` to make it asynchronous (the
`asynchronous` decorator cannot be used on `prepare`).
If this method returns a `.Future` execution will not proceed
until the `.Future` is done.

.. versionadded:: 3.1
   Asynchronous support.

Reimplemented from rosbridge_tools.tornado.web.RequestHandler.

Definition at line 2497 of file web.py.


Member Data Documentation

Reimplemented from rosbridge_tools.tornado.web.RequestHandler.

Definition at line 2497 of file web.py.

Definition at line 2494 of file web.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