Files
uwsgi/hello_world.py
T
2011-08-04 16:53:39 +02:00

7 lines
286 B
Python

import uwsgi
#uwsgi.cache_set('/', "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\nHello World from cache")
def application(env, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
yield str(env['wsgi.input'].fileno())
yield "<h1>Hello World</h1>"