MCPcopy
hub / github.com/mitmproxy/mitmproxy / decode

Method decode

mitmproxy/addons/core.py:185–197  ·  view source on GitHub ↗

Decode flows.

(self, flows: Sequence[flow.Flow], part: str)

Source from the content-addressed store, hash-verified

183
184 @command.command("flow.decode")
185 def decode(self, flows: Sequence[flow.Flow], part: str) -> None:
186 """
187 Decode flows.
188 """
189 updated = []
190 for f in flows:
191 p = getattr(f, part, None)
192 if p:
193 f.backup()
194 p.decode()
195 updated.append(f)
196 ctx.master.addons.trigger(hooks.UpdateHook(updated))
197 logger.log(ALERT, "Decoded %s flows." % len(updated))
198
199 @command.command("flow.encode.toggle")
200 def encode_toggle(self, flows: Sequence[flow.Flow], part: str) -> None:

Callers 15

test_encodingFunction · 0.95
edit_focusMethod · 0.45
get_dataMethod · 0.45
jsonMethod · 0.45
getMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45
_readMethod · 0.45

Calls 4

backupMethod · 0.80
triggerMethod · 0.80
appendMethod · 0.45
logMethod · 0.45

Tested by 1

test_encodingFunction · 0.76