示例#1
0
 def diesel(app, address, **options):
     from diesel.protocols.wsgi import WSGIApplication
     app = WSGIApplication(app, port=address[1])
     app.run()
示例#2
0
文件: server.py 项目: perryhau/Mole
 def run(self, handler):
     from diesel.protocols.wsgi import WSGIApplication
     app = WSGIApplication(handler, port=self.port)
     app.run()
示例#3
0
文件: itty.py 项目: FacundoM/itty
def diesel_adapter(host, port):
    # Experimental (Mostly untested).
    from diesel.protocols.wsgi import WSGIApplication
    app = WSGIApplication(handle_request, port=int(port))
    app.run()
示例#4
0
 def diesel(app, address, **options):
     from diesel.protocols.wsgi import WSGIApplication
     app = WSGIApplication(app, port=address[1])
     app.run()
示例#5
0
 def run(self, handler):
     from diesel.protocols.wsgi import WSGIApplication
     app = WSGIApplication(handler, port=self.port)
     app.run()
示例#6
0
def diesel_adapter(host, port):
    # Experimental (Mostly untested).
    from diesel.protocols.wsgi import WSGIApplication
    app = WSGIApplication(handle_request, port=int(port))
    app.run()