aboutsummaryrefslogtreecommitdiffstats
path: root/docs/changelog.rst
blob: 565b0521d0c2cdbfe493d19765b04d5c119fa7eb (plain)
1
.. include:: ../CHANGELOG.rst
* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
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()
]