1class application: 2 def __init__(self, environ, start_response): 3 self.environ = environ 4 self.start = start_response 5 6 def __iter__(self): 7 self.start('200', [(('Content-Length', '0'))]) 8 9 def close(self): 10 self.environ['wsgi.errors'].write('Close called.') 11