Skip to content

Instantly share code, notes, and snippets.

@akesling
Last active December 19, 2023 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akesling/4aa1bcc45c93010dd67c3c3ae24e413b to your computer and use it in GitHub Desktop.
Save akesling/4aa1bcc45c93010dd67c3c3ae24e413b to your computer and use it in GitHub Desktop.
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