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

Method setvalue

mitmproxy/addons/view.py:403–413  ·  view source on GitHub ↗

Set a value in the settings store for the specified flows.

(
        self, flows: Sequence[mitmproxy.flow.Flow], key: str, value: str
    )

Source from the content-addressed store, hash-verified

401
402 @command.command("view.settings.setval")
403 def setvalue(
404 self, flows: Sequence[mitmproxy.flow.Flow], key: str, value: str
405 ) -> None:
406 """
407 Set a value in the settings store for the specified flows.
408 """
409 updated = []
410 for f in flows:
411 self.settings[f][key] = value
412 updated.append(f)
413 ctx.master.addons.trigger(hooks.UpdateHook(updated))
414
415 # Flows
416 @command.command("view.flows.duplicate")

Callers 1

test_setgetvalFunction · 0.95

Calls 2

triggerMethod · 0.80
appendMethod · 0.45

Tested by 1

test_setgetvalFunction · 0.76