MCPcopy
hub / github.com/mitmproxy/mitmproxy / revert

Method revert

mitmproxy/flow.py:217–223  ·  view source on GitHub ↗

Revert to the last backed up state.

(self)

Source from the content-addressed store, hash-verified

215 self._backup = self.get_state()
216
217 def revert(self):
218 """
219 Revert to the last backed up state.
220 """
221 if self._backup:
222 self.set_state(self._backup)
223 self._backup = None
224
225 @property
226 def killable(self):

Callers 11

test_backupMethod · 0.45
test_copyMethod · 0.45
test_killMethod · 0.45
test_flow_updateMethod · 0.45
test_flow_contentMethod · 0.45
onKeyDownFunction · 0.45

Calls 1

set_stateMethod · 0.95

Tested by 9

test_backupMethod · 0.36
test_copyMethod · 0.36
test_killMethod · 0.36
test_flow_updateMethod · 0.36
test_flow_contentMethod · 0.36