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

Method done

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

Source from the content-addressed store, hash-verified

120 self.active_flows.discard(flow)
121
122 def done(self) -> None:
123 if self.stream:
124 for f in self.active_flows:
125 self.stream.add(f)
126 self.active_flows.clear()
127
128 self.current_path = None
129 self.stream.fo.close()
130 self.stream = None
131
132 @command.command("save.file")
133 def save(self, flows: Sequence[flow.Flow], path: mitmproxy.types.Path) -> None:

Callers 4

test_rotate_streamFunction · 0.95
configureMethod · 0.95
create_taskFunction · 0.45
readingMethod · 0.45

Calls 3

addMethod · 0.45
clearMethod · 0.45
closeMethod · 0.45

Tested by 1

test_rotate_streamFunction · 0.76