Skip to content

Commit 1c286e5

Browse files
authored
feat(p3): allow trailer retrieval to fail (#157)
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent df6de8d commit 1c286e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wit-0.3.0-draft/types.wit

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

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

282282
/// Represents an HTTP Request.

0 commit comments

Comments
 (0)