def diesel(app, address, **options): from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(app, port=address[1]) app.run()
def run(self, handler): from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(handler, port=self.port) app.run()
def diesel_adapter(host, port): # Experimental (Mostly untested). from diesel.protocols.wsgi import WSGIApplication app = WSGIApplication(handle_request, port=int(port)) app.run()