123456789101112131415 |
- import simplejson
- def app(environ, start_response):
- response = {
- "message": "Hello, World!"
- }
- data = simplejson.dumps(response)
- status = '200 OK'
- response_headers = [
- ('Content-type', 'text/plain'),
- ('Content-Length', str(len(data)))
- ]
- start_response(status, response_headers)
- return [data]
|