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