pip install meinheld
python
import meinheld
def hello_world(environ, start_response):
status = '200 OK'
response_body = b"Hello World"
response_headers = [
('Content-type', 'text/plain'),
('Content-Length', str(len(response_body)))
]
start_response(status, response_headers)
return [response_body]
if __name__ == '__main__':
meinheld.listen(('0.0.0.0', 8000))
meinheld.run(hello_world)