Get a value from the settings store for the specified flow.
(self, flow: mitmproxy.flow.Flow, key: str, default: str)
| 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: |