MCPcopy
hub / github.com/mitmproxy/mitmproxy / extract_str

Function extract_str

mitmproxy/addons/cut.py:75–80  ·  view source on GitHub ↗
(cut: str, f: flow.Flow)

Source from the content-addressed store, hash-verified

73
74
75def extract_str(cut: str, f: flow.Flow) -> str:
76 ret = extract(cut, f)
77 if isinstance(ret, bytes):
78 return repr(ret)
79 else:
80 return ret
81
82
83class Cut:

Callers 2

saveMethod · 0.85
clipMethod · 0.85

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…