mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
16 lines
234 B
Python
16 lines
234 B
Python
|
from mitmproxy import ctx
|
||
|
|
||
|
|
||
|
class Counter:
|
||
|
def __init__(self):
|
||
|
self.num = 0
|
||
|
|
||
|
def request(self, flow):
|
||
|
self.num = self.num + 1
|
||
|
ctx.log.info("We've seen %d flows" % self.num)
|
||
|
|
||
|
|
||
|
addons = [
|
||
|
Counter()
|
||
|
]
|