Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
75
def
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
83
class
Cut:
Callers
2
save
Method · 0.85
clip
Method · 0.85
Calls
1
extract
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…