aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/add_header_class.py
blob: 419c99ac21aa8a8643a9b070d29b732a6c9bfed2 (plain)
1
2
3
4
5
6
7
8
9
from mitmproxy import http


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


addons = [AddHeader()]