Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from gevent import monkey; monkey.patch_all()
from gevent.pywsgi import WSGIServer
def application(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return [b'I am a stupid HTTP server!']
if __name__ == '__main__':
WSGIServer(('', 8080), application, log=None).serve_forever()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment