
Public Member Functions | |
| def | initialize |
| def | prepare |
Public Attributes | |
| fallback | |
Private Attributes | |
| _finished | |
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),
])
| def tornado.web.FallbackHandler.initialize | ( | self, | |
| fallback | |||
| ) |
| def tornado.web.FallbackHandler.prepare | ( | self | ) |
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.
tornado::web.FallbackHandler::_finished [private] |
Reimplemented from tornado.web.RequestHandler.