mitmproxy/examples/simple_script
2011-08-03 16:36:20 +12:00

7 lines
157 B
Python
Executable File

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