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

Method options_load

mitmproxy/addons/core.py:249–256  ·  view source on GitHub ↗

Load options from a file.

(self, path: mitmproxy.types.Path)

Source from the content-addressed store, hash-verified

247
248 @command.command("options.load")
249 def options_load(self, path: mitmproxy.types.Path) -> None:
250 """
251 Load options from a file.
252 """
253 try:
254 optmanager.load_paths(ctx.options, path)
255 except (OSError, exceptions.OptionsError) as e:
256 raise exceptions.CommandError("Could not load options - %s" % e) from e
257
258 @command.command("options.save")
259 def options_save(self, path: mitmproxy.types.Path) -> None:

Callers 1

test_optionsFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_optionsFunction · 0.76