xref: /unit/test/python/input_iter/wsgi.py (revision 603:a11b80dedc6b)
1def application(environ, start_response):
2    body = bytes(environ['wsgi.input'].__iter__())
3
4    start_response('200', [('Content-Length', str(len(body)))])
5    return [body]
6