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

feat(p3): allow trailer retrieval to fail#157

Merged
dicej merged 1 commit intoWebAssembly:mainfrom
rvolosatovs:feat/p3-fallible-trailers
Mar 12, 2025
Merged

feat(p3): allow trailer retrieval to fail#157
dicej merged 1 commit intoWebAssembly:mainfrom
rvolosatovs:feat/p3-fallible-trailers

Conversation

@rvolosatovs
Copy link
Contributor

Refs #154
Retrieving trailers implies reading the body of the response, which is a fallible operation.
Currently, guests that call finish without calling stream first have no way to acquire the error-code that the operation might have failed with (due to the implicit read of the body). Even in cases where the data frames of the body might have been fully read before calling finish, reading of the trailers can potentially still fail.

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@lukewagner
Copy link
Member

Makes sense to me.

@dicej dicej merged commit 1c286e5 into WebAssembly:main Mar 12, 2025
1 check passed
@rvolosatovs rvolosatovs deleted the feat/p3-fallible-trailers branch March 12, 2025 20:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants