MCPcopy
hub / github.com/mitmproxy/mitmproxy / Counter

Class Counter

examples/addons/anatomy.py:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class Counter:
11 def __init__(self):
12 self.num = 0
13
14 def request(self, flow):
15 self.num = self.num + 1
16 logging.info("We've seen %d flows" % self.num)
17
18
19addons = [Counter()]

Callers 2

dump_infoFunction · 0.85
anatomy.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…