aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/scripting/events.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/scripting/events.rst b/docs/scripting/events.rst
index 62266485..5f560e58 100644
--- a/docs/scripting/events.rst
+++ b/docs/scripting/events.rst
@@ -98,6 +98,18 @@ HTTP Events
:widths: 40 60
:header-rows: 0
+ * - .. py:function:: http_connect(flow)
+ - Called when we receive an HTTP CONNECT request. Setting a non 2xx
+ response on the flow will return the response to the client abort the
+ connection. CONNECT requests and responses do not generate the usual
+ HTTP handler events. CONNECT requests are only valid in regular and
+ upstream proxy modes.
+
+ *flow*
+ A ``models.HTTPFlow`` object. The flow is guaranteed to have
+ non-None ``request`` and ``requestheaders`` attributes.
+
+
* - .. py:function:: request(flow)
- Called when a client request has been received.