From d39ee4e017363b7e0aa591862cf73ff4bfe152df Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Thu, 2 Jul 2026 15:03:26 +0300 Subject: [PATCH] docs: note fetch_request_container in the 2.0.0 release notes --- planning/releases/2.0.0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/planning/releases/2.0.0.md b/planning/releases/2.0.0.md index 0b26d8b..9d98b06 100644 --- a/planning/releases/2.0.0.md +++ b/planning/releases/2.0.0.md @@ -22,7 +22,8 @@ dependencies. via `web.WebSocketResponse().can_prepare(request).ok` and opens a `Scope.REQUEST` child container for each HTTP request or a `Scope.SESSION` child for each WebSocket connection, injecting the connection as context and - closing the child when the connection ends. Per-message work inside a + closing the child when the connection ends. A handler reads its child + container with `fetch_request_container(request)`. Per-message work inside a WebSocket handler can open a nested `Scope.REQUEST` child of the SESSION container. - **`FromDI` + `@inject`.** Mark a handler parameter with