aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stub.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stub.py')
-rw-r--r--examples/stub.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/stub.py b/examples/stub.py
index 42b2935a..78cbfcf2 100644
--- a/examples/stub.py
+++ b/examples/stub.py
@@ -14,6 +14,13 @@ def clientconnect(ctx, client_connect):
"""
ctx.log("clientconnect")
+def serverconnect(ctx, server_connection):
+ """
+ Called when the proxy initiates a connection to the target server. Note that a
+ connection can correspond to multiple HTTP requests
+ """
+ ctx.log("serverconnect")
+
def request(ctx, flow):
"""
Called when a client request has been received.