gevent_.py |
|
---|---|
Gevent-based WSGI server adapter. |
|
Imports |
from __future__ import unicode_literals, print_function
from gevent.pywsgi import WSGIServer
|
Server Adapter |
|
Gevent-based WSGI-HTTP server. |
def serve(application, host='127.0.0.1', port=8080):
|
Instantiate the server with a host/port configuration and our application. |
WSGIServer((host, int(port)), application).serve_forever()
|