Def start() vs addons = []


#1

What’s the difference between using

def start():
    return Test()

and

addons = [Test()]

?

One thing that I’ve noticed is with 2nd approach nothing was logged/printed (probably not executed at all) in def response. Why?


#2

For mitmproxy 2.x, please use start(), we may change that with the next release. I don’t think we document addons= somewhere?


#3

It’s still in examples on Github.


#4

You are presumably looking at the examples on the master branch - for 2.x, please look at the 2.x branch.