aboutsummaryrefslogtreecommitdiffstats
path: root/test/scripts/stream_modify.py
blob: e5c323becd85ec39ee1c82745140a39405536183 (plain)
1
2
3
4
5
6
7
def modify(chunks):
    for prefix, content, suffix in chunks:
        yield prefix, content.replace("foo", "bar"), suffix


def responseheaders(context, flow):
    flow.response.stream = modify