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

Method recompute_hashes

mitmproxy/addons/serverplayback.py:270–276  ·  view source on GitHub ↗

Rebuild flowmap if the hashing method has changed during execution, see https://github.com/mitmproxy/mitmproxy/issues/4506

(self)

Source from the content-addressed store, hash-verified

268 self.recompute_hashes()
269
270 def recompute_hashes(self) -> None:
271 """
272 Rebuild flowmap if the hashing method has changed during execution,
273 see https://github.com/mitmproxy/mitmproxy/issues/4506
274 """
275 flows = [flow for lst in self.flowmap.values() for flow in lst]
276 self.load_flows(flows)
277
278 def request(self, f: http.HTTPFlow) -> None:
279 if self.flowmap:

Callers 1

configureMethod · 0.95

Calls 2

load_flowsMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected