Set a value in the settings store for the specified flows.
(
self, flows: Sequence[mitmproxy.flow.Flow], key: str, value: str
)
| 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") |