mitmproxy/examples/simple/add_header_class.py
Aldo Cortesi 65f0885bd6 addon loader: add boot_into, which replaces returning from start()
While we're here, expand test coverage for addonmanager to 100%, and promote to
individual coverage.
2017-03-25 10:48:12 +13:00

8 lines
149 B
Python

class AddHeader:
def response(self, flow):
flow.response.headers["newheader"] = "foo"
def load(l):
return l.boot_into(AddHeader())