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, 8 insertions, 1 deletions
diff --git a/examples/stub.py b/examples/stub.py
index 10b34283..e5b4a39a 100644
--- a/examples/stub.py
+++ b/examples/stub.py
@@ -6,11 +6,18 @@ import mitmproxy
def start():
"""
- Called once on script startup, before any other events.
+ 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.
+ """
+ mitmproxy.ctx.log("configure")
+
+
def clientconnect(root_layer):
"""
Called when a client initiates a connection to the proxy. Note that a