Skip to content

Instantly share code, notes, and snippets.

@philipcristiano
Created June 24, 2013 23:04
Show Gist options
  • Save philipcristiano/5854532 to your computer and use it in GitHub Desktop.
Save philipcristiano/5854532 to your computer and use it in GitHub Desktop.
Minimal WSGI application
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