From ebcadd1652fad937b384b21971b75322a3d339a5 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Wed, 12 Mar 2025 11:29:50 +0100 Subject: [PATCH] fix(p3): allow taking response/request body at most once Signed-off-by: Roman Volosatovs --- wit-0.3.0-draft/types.wit | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wit-0.3.0-draft/types.wit b/wit-0.3.0-draft/types.wit index 31eb62a..3ea12ec 100644 --- a/wit-0.3.0-draft/types.wit +++ b/wit-0.3.0-draft/types.wit @@ -356,6 +356,8 @@ interface types { /// Get the body associated with the Request, if any. /// + /// After being called once, consequent calls with return `none`. + /// /// This body resource is a child: it must be dropped before the parent /// `request` is dropped, or its ownership is transferred to another /// component by e.g. `handler.handle`. @@ -439,6 +441,8 @@ interface types { /// Get the body associated with the Response, if any. /// + /// After being called once, consequent calls with return `none`. + /// /// This body resource is a child: it must be dropped before the parent /// `response` is dropped, or its ownership is transferred to another /// component by e.g. `handler.handle`.