mitmproxy/examples/simple/add_header.py

6 lines
119 B
Python
Raw Normal View History

2017-04-28 21:56:14 +00:00
from mitmproxy import http
def response(flow: http.HTTPFlow) -> None:
2015-09-05 18:45:58 +00:00
flow.response.headers["newheader"] = "foo"