Add responses from flows to server replay list.
(self, flows: Sequence[flow.Flow])
| 145 | |
| 146 | @command.command("replay.server.add") |
| 147 | def add_flows(self, flows: Sequence[flow.Flow]) -> None: |
| 148 | """ |
| 149 | Add responses from flows to server replay list. |
| 150 | """ |
| 151 | for f in flows: |
| 152 | if isinstance(f, http.HTTPFlow): |
| 153 | lst = self.flowmap.setdefault(self._hash(f), []) |
| 154 | lst.append(f) |
| 155 | ctx.master.addons.trigger(hooks.UpdateHook([])) |
| 156 | |
| 157 | @command.command("replay.server.file") |
| 158 | def load_file(self, path: mitmproxy.types.Path) -> None: |