Last active
March 22, 2018 04:41
-
-
Save internetlab/3f3c5f42ade291acc2d6d60fd0307c2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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): | |
"""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