-
-
Save juanbenitopr/14a66aeeb2012bd79abb9be4bd53fed7 to your computer and use it in GitHub Desktop.
WSGI python 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
from typing import Dict, Any | |
# Sibling fake of Django | |
class Fango: | |
def __call__(environ: Dict[str, Any], start_response) -> bytes: | |
HELLO = b'Hello!' | |
status = '200 OK' | |
response_headers = [('Content-type', 'text/plain')] | |
start_response(status, response_headers) | |
return HELLO | |
app = Fango() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment