2
This is a script stub, with definitions for all events.
7
Called once on script startup, before any other events.
11
def clientconnect(ctx, client_connect):
13
Called when a client initiates a connection to the proxy. Note that a
14
connection can correspond to multiple HTTP requests
16
ctx.log("clientconnect")
18
def request(ctx, flow):
20
Called when a client request has been received.
24
def response(ctx, flow):
26
Called when a server response has been received.
32
Called when a flow error has occured, e.g. invalid server responses, or
33
interrupted connections. This is distinct from a valid server HTTP error
34
response, which is simply a response with an HTTP error code.
38
def clientdisconnect(ctx, client_disconnect):
40
Called when a client disconnects from the proxy.
42
ctx.log("clientdisconnect")
46
Called once on script shutdown, after any other events.