poetry2nix/tests/dependency-environment/trivial.py

11 lines
317 B
Python
Raw Normal View History

2020-05-08 16:18:10 +02:00
def app(environ, start_response):
"""Simplest possible application object"""
2022-01-12 18:25:02 +13:00
data = b"Hello, World!\n"
status = "200 OK"
2020-05-08 16:18:10 +02:00
response_headers = [
2022-01-12 18:25:02 +13:00
("Content-type", "text/plain"),
("Content-Length", str(len(data))),
2020-05-08 16:18:10 +02:00
]
start_response(status, response_headers)
return iter([data])