poetry2nix/tests/dependency-environment/trivial.py
2020-05-08 18:29:19 +01:00

10 lines
316 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])