aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/add_header.py
blob: 64fc6267a44e0d37dd6589d86501323790a69b07 (plain)
1
2
3
4
5
from mitmproxy import http


def response(flow: http.HTTPFlow) -> None:
    flow.response.headers["newheader"] = "foo"