MCPcopy
hub / github.com/mitmproxy/mitmproxy / script

Method script

mitmproxy/test/taddons.py:70–75  ·  view source on GitHub ↗

Loads a script from path, and returns the enclosed addon.

(self, path)

Source from the content-addressed store, hash-verified

68 self.master.addons.invoke_addon_sync(addon, hooks.ConfigureHook(set()))
69
70 def script(self, path):
71 """
72 Loads a script from path, and returns the enclosed addon.
73 """
74 sc = script.Script(path, False)
75 return sc.addons[0] if sc.addons else None
76
77 def command(self, func, *args):
78 """

Callers 12

test_load_scriptFunction · 0.80
test_concurrentMethod · 0.80
test_concurrent_errMethod · 0.80
test_add_headerMethod · 0.80
test_modify_formMethod · 0.80
test_simpleMethod · 0.80
test_contentencodeMethod · 0.80
test_httpMethod · 0.80

Calls

no outgoing calls

Tested by 12

test_load_scriptFunction · 0.64
test_concurrentMethod · 0.64
test_concurrent_errMethod · 0.64
test_add_headerMethod · 0.64
test_modify_formMethod · 0.64
test_simpleMethod · 0.64
test_contentencodeMethod · 0.64
test_httpMethod · 0.64