Public Member Functions | Public Attributes | Private Attributes
tornado.web.FallbackHandler Class Reference
Inheritance diagram for 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

def tornado.web.FallbackHandler.initialize (   self,
  fallback 
)

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 tornado.web.RequestHandler.

Definition at line 2497 of file web.py.


Member Data Documentation

Reimplemented from 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_server
Author(s): Jonathan Mace
autogenerated on Thu Jun 6 2019 21:51:51