From cf788a3d7d47b24b69e72f16e1a421ca61d9ec8c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 27 Mar 2017 09:54:13 -0700 Subject: [PATCH] Allow accept to be False --- docs/asgi/www.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/asgi/www.rst b/docs/asgi/www.rst index 76e3c60..a2d616b 100644 --- a/docs/asgi/www.rst +++ b/docs/asgi/www.rst @@ -356,6 +356,7 @@ message: * If ``bytes`` or ``text`` is present, accept the connection and send the data. * If ``accept`` is ``True``, accept the connection and do nothing else. +* If ``accept`` is ``False``, reject the connection (with close code 1000) and do nothing else. * If ``close`` is ``True`` or a positive integer, reject the connection. If ``bytes`` or ``text`` is also set, it should accept the connection, send the frame, then immediately close the connection.