我们从Python开源项目中,提取了以下47个代码示例,用于说明如何使用diesel.protocols.wsgi.WSGIApplication()。
def run(self, handler): from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(handler, port=self.port) app.run()
def diesel(app, address, **options): from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(app, port=address[1]) app.run()