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

Method parse

mitmproxy/types.py:384–388  ·  view source on GitHub ↗
(self, manager: "CommandManager", t: type, s: str)

Source from the content-addressed store, hash-verified

382 display = "flow[]"
383
384 def parse(self, manager: "CommandManager", t: type, s: str) -> Sequence[flow.Flow]:
385 try:
386 return manager.call_strings("view.flows.resolve", [s])
387 except exceptions.CommandError as e:
388 raise ValueError(str(e)) from e
389
390 def is_valid(self, manager: "CommandManager", typ: Any, val: Any) -> bool:
391 try:

Callers

nothing calls this directly

Calls 1

call_stringsMethod · 0.80

Tested by

no test coverage detected