Public Member Functions
tornado.wsgi.WSGIApplication Class Reference
Inheritance diagram for tornado.wsgi.WSGIApplication:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __call__
def __init__

Detailed Description

A WSGI equivalent of `tornado.web.Application`.

WSGIApplication is very similar to web.Application, except no
asynchronous methods are supported (since WSGI does not support
non-blocking requests properly). If you call self.flush() or other
asynchronous methods in your request handlers running in a
WSGIApplication, we throw an exception.

Example usage::

    import tornado.web
    import tornado.wsgi
    import wsgiref.simple_server

    class MainHandler(tornado.web.RequestHandler):
        def get(self):
            self.write("Hello, world")

    if __name__ == "__main__":
        application = tornado.wsgi.WSGIApplication([
            (r"/", MainHandler),
        ])
        server = wsgiref.simple_server.make_server('', 8888, application)
        server.serve_forever()

See the 'appengine' demo for an example of using this module to run
a Tornado app on Google AppEngine.

Since no asynchronous methods are available for WSGI applications, the
httpclient and auth modules are both not available for WSGI applications.
We support the same interface, but handlers running in a WSGIApplication
do not support flush() or asynchronous methods.

Definition at line 54 of file wsgi.py.


Constructor & Destructor Documentation

def tornado.wsgi.WSGIApplication.__init__ (   self,
  handlers = None,
  default_host = "",
  settings 
)

Definition at line 88 of file wsgi.py.


Member Function Documentation

def tornado.wsgi.WSGIApplication.__call__ (   self,
  environ,
  start_response 
)

Definition at line 92 of file wsgi.py.


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


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Mon Oct 6 2014 06:58:15