MCPcopy
hub / github.com/mitmproxy/mitmproxy / backup

Method backup

mitmproxy/flow.py:210–215  ·  view source on GitHub ↗

Save a backup of this flow, which can be restored by calling `Flow.revert()`.

(self, force=False)

Source from the content-addressed store, hash-verified

208 return False
209
210 def backup(self, force=False):
211 """
212 Save a backup of this flow, which can be restored by calling `Flow.revert()`.
213 """
214 if not self._backup:
215 self._backup = self.get_state()
216
217 def revert(self):
218 """

Callers 15

test_backupMethod · 0.80
test_getset_stateMethod · 0.80
test_copyMethod · 0.80
test_quickhelp.pyFile · 0.80
test_killMethod · 0.80
test_flow_updateMethod · 0.80
test_flow_revertMethod · 0.80
test_flow_contentMethod · 0.80
test_revertFunction · 0.80
edit_focusMethod · 0.80

Calls 1

get_stateMethod · 0.95

Tested by 10

test_backupMethod · 0.64
test_getset_stateMethod · 0.64
test_copyMethod · 0.64
test_killMethod · 0.64
test_flow_updateMethod · 0.64
test_flow_revertMethod · 0.64
test_flow_contentMethod · 0.64
test_revertFunction · 0.64