poetry2nix/tests/dependency-environment/trivial.py
2022-01-12 18:48:06 +13:00

10 lines
317 B
Python

def app(environ, start_response):
"""Simplest possible application object"""
data = b"Hello, World!\n"
status = "200 OK"
response_headers = [
("Content-type", "text/plain"),
("Content-Length", str(len(data))),
]
start_response(status, response_headers)
return iter([data])