import mitmproxy.http class MyAddon: def request(self, flow: mitmproxy.http.HTTPFlow) -> None: print(flow.request.url) addons = [ MyAddon() ]