1 2 3 4 5
from mitmproxy import http def response(flow: http.HTTPFlow) -> None: flow.response.headers["newheader"] = "foo"