Created
December 17, 2019 13:40
-
-
Save rafaelsq/33f3cd9290c1d0db1b370f51055c653f to your computer and use it in GitHub Desktop.
Hello Word with Gunicorn
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): | |
data = bytes("<!DOCTYPE html>\nOlá\n", 'utf-8') | |
start_response("200 OK", [ | |
["Content-Type", "text/html; charset=utf-8"], | |
["Content-Length", str(len(data))], | |
]) | |
return iter([data]) |
Author
rafaelsq
commented
Dec 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment