Last active
December 19, 2023 21:06
-
-
Save akesling/4aa1bcc45c93010dd67c3c3ae24e413b to your computer and use it in GitHub Desktop.
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
class HelloPyForge: | |
def __call__(self, environ, start_response): | |
import json | |
response = json.dumps('Hello PyForge Gists!').encode('utf-8') | |
_write = start_response('200 OK', [ | |
('Content-Type', 'application/json'), | |
('Content-Length', str(len(response))) | |
]) | |
return [response] | |
app = HelloPyForge() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment