@validator
def app(environ, start_response):
 if (environ['REQUEST_METHOD'].upper() != 'POST'):
  data = 'Hello, World!\n'
 else:
  data = environ['wsgi.input'].read()
 status = '200 OK'
 response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(data))), ('X-Gunicorn-Version', __version__), ('Test', 'test \xd1\x82\xd0\xb5\xd1\x81\xd1\x82')]
 start_response(status, response_headers)
 return iter([data])

@ validator def app ( environ , start_response ) : if ( environ [ 'REQUEST_METHOD' ] . upper ( ) != 'POST' ) : data = 'Hello, World!\n' else : data = environ [ 'wsgi.input' ] . read ( ) status = '200 OK' response_headers = [ ( 'Content-type' , 'text/plain' ) , ( 'Content-Length' , str ( len ( data ) ) ) , ( 'X-Gunicorn-Version' , __version__ ) , ( 'Test' , 'test \xd1\x82\xd0\xb5\xd1\x81\xd1\x82' ) ] start_response ( status , response_headers ) return iter ( [ data ] )
simplest possible application object .