mitmproxy/examples/simple_script

7 lines
157 B
Plaintext
Raw Normal View History

#!/usr/bin/env python
from libmproxy import script
def response(ctx, f):
ctx.log("processing a response")
f.response.headers["newheader"] = ["foo"]