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 HTTPRequest,
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 1662 of file web.py.


Member Function Documentation

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

Definition at line 1677 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.

Reimplemented from tornado.web.RequestHandler.

Definition at line 1680 of file web.py.


Member Data Documentation

Reimplemented from tornado.web.RequestHandler.

Definition at line 1680 of file web.py.

Definition at line 1677 of file web.py.


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


roswww
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:30