aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stub.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stub.py')
-rw-r--r--examples/stub.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/stub.py b/examples/stub.py
index 614acee2..7de4012a 100644
--- a/examples/stub.py
+++ b/examples/stub.py
@@ -4,6 +4,15 @@ import mitmproxy
"""
+
+def start():
+ """
+ Called once on script startup before any other events
+ """
+ mitmproxy.ctx.log("start")
+
+
+
def configure(options):
"""
Called once on script startup before any other events, and whenever options changes.