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

Class State

test/mitmproxy/test_flow.py:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17class State:
18 def __init__(self):
19 self.flows = []
20
21 def request(self, f):
22 if f not in self.flows:
23 self.flows.append(f)
24
25 def response(self, f):
26 if f not in self.flows:
27 self.flows.append(f)
28
29 def websocket_start(self, f):
30 if f not in self.flows:
31 self.flows.append(f)
32
33
34class TestSerialize:

Callers 2

test_allMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_allMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…