MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / configure

Method configure

mitmproxy/addons/savehar.py:90–102  ·  view source on GitHub ↗
(self, updated)

Source from the content-addressed store, hash-verified

88 )
89
90 def configure(self, updated):
91 if "save_stream_filter" in updated:
92 if ctx.options.save_stream_filter:
93 try:
94 self.filt = flowfilter.parse(ctx.options.save_stream_filter)
95 except ValueError as e:
96 raise exceptions.OptionsError(str(e)) from e
97 else:
98 self.filt = None
99
100 if "hardump" in updated:
101 if not ctx.options.hardump:
102 self.flows = []
103
104 def response(self, flow: http.HTTPFlow) -> None:
105 # websocket flows will receive a websocket_end,

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected