MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / add

Method add

mitmproxy/addonmanager.py:198–204  ·  view source on GitHub ↗

Add addons to the end of the chain, and run their load event. If any addon has sub-addons, they are registered.

(self, *addons)

Source from the content-addressed store, hash-verified

196 return addon
197
198 def add(self, *addons):
199 """
200 Add addons to the end of the chain, and run their load event.
201 If any addon has sub-addons, they are registered.
202 """
203 for i in addons:
204 self.chain.append(self.register(i))
205
206 def remove(self, addon):
207 """

Callers 6

test_haltFunction · 0.95
test_async_haltFunction · 0.95
test_lifecycleFunction · 0.95
test_load_optionFunction · 0.95
test_nestingFunction · 0.95
add_commandMethod · 0.45

Calls 2

registerMethod · 0.95
appendMethod · 0.45

Tested by 5

test_haltFunction · 0.76
test_async_haltFunction · 0.76
test_lifecycleFunction · 0.76
test_load_optionFunction · 0.76
test_nestingFunction · 0.76