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 `~.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), ])
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. 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.
tornado::web.FallbackHandler::_finished [private] |
Reimplemented from tornado.web.RequestHandler.