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

Method getvalue

mitmproxy/addons/view.py:383–387  ·  view source on GitHub ↗

Get a value from the settings store for the specified flow.

(self, flow: mitmproxy.flow.Flow, key: str, default: str)

Source from the content-addressed store, hash-verified

381 # View Settings
382 @command.command("view.settings.getval")
383 def getvalue(self, flow: mitmproxy.flow.Flow, key: str, default: str) -> str:
384 """
385 Get a value from the settings store for the specified flow.
386 """
387 return self.settings[flow].get(key, default)
388
389 @command.command("view.settings.setval.toggle")
390 def setvalue_toggle(self, flows: Sequence[mitmproxy.flow.Flow], key: str) -> None:

Callers 15

test_setgetvalFunction · 0.95
serializeFunction · 0.80
test_serialize_defaultsFunction · 0.80
test_dump_defaultsFunction · 0.80
_dumpMethod · 0.80
test_errorMethod · 0.80
test_simpleFunction · 0.80
test_check_argsFunction · 0.80
test_dump_infoFunction · 0.80
test_dump_info_asyncFunction · 0.80
test_dump_stacksFunction · 0.80
test_view_zipFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 15

test_setgetvalFunction · 0.76
serializeFunction · 0.64
test_serialize_defaultsFunction · 0.64
test_dump_defaultsFunction · 0.64
_dumpMethod · 0.64
test_errorMethod · 0.64
test_simpleFunction · 0.64
test_check_argsFunction · 0.64
test_dump_infoFunction · 0.64
test_dump_info_asyncFunction · 0.64
test_dump_stacksFunction · 0.64
test_view_zipFunction · 0.64