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

Method done

mitmproxy/addons/savehar.py:122–128  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

120 self.flows.append(flow)
121
122 def done(self):
123 if ctx.options.hardump:
124 if ctx.options.hardump == "-":
125 har = self.make_har(self.flows)
126 print(json.dumps(har, indent=4))
127 else:
128 self.export_har(self.flows, ctx.options.hardump)
129
130 def flow_entry(self, flow: http.HTTPFlow, servers_seen: set[Server]) -> dict:
131 """Creates HAR entry from flow"""

Callers 3

test_simpleMethod · 0.95
test_filterMethod · 0.95
test_compressedMethod · 0.95

Calls 3

make_harMethod · 0.95
export_harMethod · 0.95
dumpsMethod · 0.80

Tested by 3

test_simpleMethod · 0.76
test_filterMethod · 0.76
test_compressedMethod · 0.76