aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/stream.py
blob: 1993cf7f39b1859e2dd1f2e49b77ebc2df051d08 (plain)
1
2
3
4
5
6
def responseheaders(flow):
    """
    Enables streaming for all responses.
    This is equivalent to passing `--stream 0` to mitmproxy.
    """
    flow.response.stream = True