mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
9 lines
175 B
Python
9 lines
175 B
Python
from mitmproxy import http
|
|
|
|
|
|
class AddHeader:
|
|
def response(self, flow: http.HTTPFlow) -> None:
|
|
flow.response.headers["newheader"] = "foo"
|
|
|
|
|
|
addons = [AddHeader()]
|