diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/models.rst | 2 | ||||
-rw-r--r-- | docs/scripting/inlinescripts.rst | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/dev/models.rst b/docs/dev/models.rst index 7260f1f7..a333fb06 100644 --- a/docs/dev/models.rst +++ b/docs/dev/models.rst @@ -39,6 +39,8 @@ Datastructures .. autoclass:: Response + .. automethod:: make + .. rubric:: Data .. autoattribute:: http_version .. autoattribute:: status_code diff --git a/docs/scripting/inlinescripts.rst b/docs/scripting/inlinescripts.rst index bc9d5ff5..e1c01b17 100644 --- a/docs/scripting/inlinescripts.rst +++ b/docs/scripting/inlinescripts.rst @@ -126,6 +126,18 @@ HTTP Events :param HTTPFlow flow: The flow containing the error. It is guaranteed to have non-None ``error`` attribute. +WebSockets Events +^^^^^^^^^^^^^^^^^ + +.. py:function:: websockets_handshake(context, flow) + + Called when a client wants to establish a WebSockets connection. + The WebSockets-specific headers can be manipulated to manipulate the handshake. + The ``flow`` object is guaranteed to have a non-None ``request`` attribute. + + :param HTTPFlow flow: The flow containing the request which has been received. + The object is guaranteed to have a non-None ``request`` attribute. + TCP Events ^^^^^^^^^^ |