From 7fc940de0de79c5e063733baeca727b7ec519249 Mon Sep 17 00:00:00 2001 From: nggit Date: Sat, 11 Oct 2025 12:10:45 +0700 Subject: [PATCH] Expand information about `receive()` after EOF --- specs/www.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specs/www.rst b/specs/www.rst index 3417b28e..3667a4a5 100644 --- a/specs/www.rst +++ b/specs/www.rst @@ -161,6 +161,11 @@ Note that if the request is being sent using ``Transfer-Encoding: chunked``, the server is responsible for handling this encoding. The ``http.request`` messages should contain just the decoded contents of each chunk. +After the final ``http.request`` message (``more_body`` is ``False``), +indicating that all data from the declared ``Content-Length`` or decoded +chunked body has been received, the provided ``receive()`` callable must remain +awaitable and continue to block until a ``http.disconnect`` event occurs. + Keys: * ``type`` (*Unicode string*) -- ``"http.request"``.