Created
June 24, 2013 23:04
-
-
Save philipcristiano/5854532 to your computer and use it in GitHub Desktop.
Minimal WSGI application
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
from werkzeug.wrappers import Request, Response | |
@Request.application | |
def application(request): | |
resp = Response('Hello World!') | |
if request.path == '/_status': | |
resp.status = '200 OK' | |
else: | |
resp.status ='404 Not Found' | |
return resp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment