1def stream():
2    def app(environ, start_response):
3        writer = start_response('200 OK', [('Content-type', 'text/html')])
4        writer(b'te')
5        writer(b'st')
6        return [b'2']
7    return app
8