mitmproxy/examples/addons/anatomy2.py

6 lines
123 B
Python

"""An addon using the abbreviated scripting syntax."""
def request(flow):
flow.request.headers["myheader"] = "value"