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

Method options_save

mitmproxy/addons/core.py:259–266  ·  view source on GitHub ↗

Save options to a file.

(self, path: mitmproxy.types.Path)

Source from the content-addressed store, hash-verified

257
258 @command.command("options.save")
259 def options_save(self, path: mitmproxy.types.Path) -> None:
260 """
261 Save options to a file.
262 """
263 try:
264 optmanager.save(ctx.options, path)
265 except OSError as e:
266 raise exceptions.CommandError("Could not save options - %s" % e) from e
267
268 @command.command("options.reset")
269 def options_reset(self) -> None:

Callers 1

test_optionsFunction · 0.95

Calls 1

saveMethod · 0.45

Tested by 1

test_optionsFunction · 0.76