Skip to content

Instantly share code, notes, and snippets.

@marconi
Created November 23, 2012 05:37
Show Gist options
  • Save marconi/4134148 to your computer and use it in GitHub Desktop.
Save marconi/4134148 to your computer and use it in GitHub Desktop.
A bare wsgi app.
def app(environ, start_response):
"""Simplest possible application object"""
data = '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])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment