summaryrefslogtreecommitdiff
path: root/tests/urlparser_data/python/stream.py
blob: e81fd1cc460bfad7bfb65e0ca598cde0994e8ab7 (plain)
1
2
3
4
5
6
7
def stream():
    def app(environ, start_response):
        writer = start_response('200 OK', [('Content-type', 'text/html')])
        writer(b'te')
        writer(b'st')
        return [b'2']
    return app