MCPcopy
hub / github.com/mitmproxy/mitmproxy / resolve

Method resolve

test/mitmproxy/test_types.py:205–212  ·  view source on GitHub ↗
(self, spec: str)

Source from the content-addressed store, hash-verified

203class DummyConsole:
204 @command.command("view.flows.resolve")
205 def resolve(self, spec: str) -> Sequence[flow.Flow]:
206 if spec == "err":
207 raise mitmproxy.exceptions.CommandError()
208 try:
209 n = int(spec)
210 except ValueError:
211 n = 1
212 return [tflow.tflow(resp=True)] * n
213
214 @command.command("cut")
215 def cut(self, spec: str) -> mitmproxy.types.Data:

Callers 1

test_generated_filesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected