Skip to content

Instantly share code, notes, and snippets.

@internetlab
Last active March 22, 2018 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save internetlab/3f3c5f42ade291acc2d6d60fd0307c2f to your computer and use it in GitHub Desktop.
Save internetlab/3f3c5f42ade291acc2d6d60fd0307c2f to your computer and use it in GitHub Desktop.
def app(environ, start_response):
"""Simplest possible application object"""
data = 'Hello, World Again and Again this is Nice!\n'
status = '200 OK'
response_headers = [
('Content-type','text/plain'),
('Content-Length', str(len(data)))
]
start_response(status, response_headers)
return [bytes(data, 'utf-8')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment