Skip to content

Instantly share code, notes, and snippets.

@longfin
Created January 13, 2012 13:11
Show Gist options
  • Save longfin/1606034 to your computer and use it in GitHub Desktop.
Save longfin/1606034 to your computer and use it in GitHub Desktop.
very simple wsgi application
def app(environ, start_response):
response_body = 'Hello World!'
status = '200 OK'
response_headers = [('Content-Type', 'text/plain'),
('Content-Length', str(len(response_body)))]
start_response(status, response_headers)
return [response_body]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment