mitmproxy/examples/simple/add_header_class.py

8 lines
136 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 start():
return AddHeader()