summaryrefslogtreecommitdiff
path: root/tests/hello.wsgi
blob: cb484883d4a9a03710e9e6d8f06b0210f7421a25 (plain)
1
2
3
4
5
6
7
8
9
def application(environ, start_response):
    status = '200 OK'
    output = b'Hello World!'

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]