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

Method reset

mitmproxy/optmanager.py:213–219  ·  view source on GitHub ↗

Restore defaults for all options.

(self)

Source from the content-addressed store, hash-verified

211 return k in self._options
212
213 def reset(self):
214 """
215 Restore defaults for all options.
216 """
217 for o in self._options.values():
218 o.reset()
219 self.changed.send(updated=set(self._options.keys()))
220
221 def update_known(self, **kwargs):
222 """

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
valuesMethod · 0.80
resetMethod · 0.45
sendMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected