Module Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
Bottle-like Servers strategy.

Method lunar.run accept a subclass of ServerAdapter, create a server 
instance and run applications using the run interface provided by ServerAdapter.

So the server must implement the interface 'run' provided by ServerAdapter.
 ServerAdapter N/A object N/A __init__ N/A N/A self host port N/A 127.0.0.1 8000 N/A N/A N/A self host host N/A N/A self port port N/A __repr__ N/A N/A self N/A N/A N/A N/A %s (%s:%s) N/A N/A N/A self __class__ __name__ N/A self host N/A self port N/A run N/A N/A self app N/A N/A N/A N/A N/A WSGIRefServer N/A ServerAdapter N/A run N/A N/A self app N/A N/A wsgiref.simple_server make_server N/A httpd N/A make_server N/A self host N/A self port app N/A N/A N/A httpd serve_forever N/A N/A TornadoServer N/A ServerAdapter N/A N/A Tornado server for test and example.
     run N/A N/A self app N/A N/A N/A tornado.wsgi N/A tornado.httpserver N/A tornado.ioloop N/A container N/A N/A N/A tornado wsgi WSGIContainer app N/A server N/A N/A N/A tornado httpserver HTTPServer container N/A N/A N/A server listen port N/A self port address N/A self host N/A N/A N/A N/A N/A N/A N/A tornado ioloop IOLoop instance start N/A N/A TwistedServer N/A ServerAdapter N/A N/A Twisted server for test purpose
     run N/A N/A self app N/A N/A twisted.web server wsgi twisted.internet reactor N/A resource N/A N/A wsgi WSGIResource reactor N/A N/A reactor getThreadPool app N/A server N/A N/A server Site resource N/A N/A N/A reactor listenTCP port N/A self port factory server interface N/A self host N/A N/A N/A reactor run N/A N/A