MCPcopy
hub / github.com/mitmproxy/mitmproxy / intercept

Method intercept

mitmproxy/flow.py:244–253  ·  view source on GitHub ↗

Intercept this Flow. Processing will stop until resume is called.

(self)

Source from the content-addressed store, hash-verified

242 self.live = False
243
244 def intercept(self):
245 """
246 Intercept this Flow. Processing will stop until resume is
247 called.
248 """
249 if self.intercepted:
250 return
251 self.intercepted = True
252 if self._resume_event is not None:
253 self._resume_event.clear()
254
255 async def wait_for_resume(self):
256 """

Callers 13

test_getset_stateMethod · 0.45
test_killMethod · 0.45
test_interceptMethod · 0.45
test_resumeMethod · 0.45
test_wait_for_resumeMethod · 0.45
test_quickhelp.pyFile · 0.45
test_resumeMethod · 0.45
test_killMethod · 0.45
test_resumeFunction · 0.45
test_killFunction · 0.45
test_prior_knowledgeMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by 12

test_getset_stateMethod · 0.36
test_killMethod · 0.36
test_interceptMethod · 0.36
test_resumeMethod · 0.36
test_wait_for_resumeMethod · 0.36
test_resumeMethod · 0.36
test_killMethod · 0.36
test_resumeFunction · 0.36
test_killFunction · 0.36
test_prior_knowledgeMethod · 0.36
test_focusFunction · 0.36