def application(environ, start_response):
    status = '200 OK'
    output = "<html><head><title>HW WSGI</title></head>\
              <body>Hello World!</body></html>"
    response_headers = [('Content-type', 'text/html'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)
    return output

This code is part of the book "Python for Bioinformatics", by Sebastian Bassi (sbassi@genesdigitales.com). Return to home page.