From acd31a663d952a3cd50f97bd72f7dbc83b0800cd Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 22 Mar 2016 10:15:30 -0700 Subject: [PATCH] Add closed message to request bodies to allow fast failure --- docs/asgi.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/asgi.rst b/docs/asgi.rst index 04ddcfe..d6311e4 100644 --- a/docs/asgi.rst +++ b/docs/asgi.rst @@ -496,6 +496,11 @@ Keys: * ``content``: Byte string of HTTP body content, will be concatenated onto previously received ``content`` values and ``body`` key in Request. + Not required if ``closed`` is True, required otherwise. + +* ``closed``: True if the client closed the connection prematurely and the + rest of the body. If you receive this, abandon processing of the HTTP request. + Optional, defaults to ``False``. * ``more_content``: Boolean value signifying if there is additional content to come (as part of a Request Body Chunk message). If ``False``, request will