Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 7ae64df

Browse files
committed
feat(p3): allow trailer retrieval to fail
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent af1940e commit 7ae64df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wit-0.3.0-draft/types.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ interface types {
272272
/// The returned future resolves to success if body is closed.
273273
%stream: func() -> result<tuple<stream<u8>, future<result<_, error-code>>>>;
274274

275-
/// Takes ownership of `body`, and returns an unresolved optional `trailers`.
275+
/// Takes ownership of `body`, and returns an unresolved optional `trailers` result.
276276
///
277277
/// This function will trap if a `stream` child is still alive.
278-
finish: static func(this: body) -> future<option<trailers>>;
278+
finish: static func(this: body) -> future<result<option<trailers>, error-code>>;
279279
}
280280

281281
/// Represents an HTTP Request.

0 commit comments

Comments
 (0)