mitmproxy/examples/simple/add_header_class.py

8 lines
149 B
Python
Raw Normal View History

2016-10-15 22:12:58 +00:00
class AddHeader:
def response(self, flow):
flow.response.headers["newheader"] = "foo"
def load(l):
return l.boot_into(AddHeader())