import mitmproxy
from mitmproxy import http, ctx


class Counter:

    def __init__(self):
        self.num = 0

    def request(self, flow: mitmproxy.http.HTTPFlow):
        self.num += 1
        ctx.log.info("we've seen {} flows".format(self.num))

bceb7534d9d93e62ea6438bf23772b2d2bef1008
<mask token>


class Counter:
    <mask token>
    <mask token>

<mask token>


class Counter:
    <mask token>

    def request(self, flow: mitmproxy.http.HTTPFlow):
        self.num += 1
        ctx.log.info("we've seen {} flows".format(self.num))

<mask token>


class Counter:

    def __init__(self):
        self.num = 0

    def request(self, flow: mitmproxy.http.HTTPFlow):
        self.num += 1
        ctx.log.info("we've seen {} flows".format(self.num))

import mitmproxy
from mitmproxy import http, ctx


class Counter:

    def __init__(self):
        self.num = 0

    def request(self, flow: mitmproxy.http.HTTPFlow):
        self.num += 1
        ctx.log.info("we've seen {} flows".format(self.num))
