Created
January 13, 2012 13:11
-
-
Save longfin/1606034 to your computer and use it in GitHub Desktop.
very simple wsgi application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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