(self, handler)
| 3450 | """ Untested. See http://gunicorn.org/configure.html for options. """ |
| 3451 | |
| 3452 | def run(self, handler): |
| 3453 | from gunicorn.app.base import BaseApplication |
| 3454 | |
| 3455 | if self.host.startswith("unix:"): |
| 3456 | config = {'bind': self.host} |
| 3457 | else: |
| 3458 | config = {'bind': "%s:%d" % (self.host, self.port)} |
| 3459 | |
| 3460 | config.update(self.options) |
| 3461 | |
| 3462 | class GunicornApplication(BaseApplication): |
| 3463 | def load_config(self): |
| 3464 | for key, value in config.items(): |
| 3465 | self.cfg.set(key, value) |
| 3466 | |
| 3467 | def load(self): |
| 3468 | return handler |
| 3469 | |
| 3470 | GunicornApplication().run() |
| 3471 | |
| 3472 | |
| 3473 | class EventletServer(ServerAdapter): |
nothing calls this directly
no test coverage detected