mirror of
https://github.com/django/daphne.git
synced 2025-07-29 00:19:45 +03:00
Allow accept to be False
This commit is contained in:
parent
0f0c74daaa
commit
cf788a3d7d
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user