Skip to content

[wasi-http] Return none from future-trailers.get when trailers absent#9208

Merged
alexcrichton merged 2 commits intobytecodealliance:mainfrom
dicej:wasi-http-trailers
Sep 6, 2024
Merged

[wasi-http] Return none from future-trailers.get when trailers absent#9208
alexcrichton merged 2 commits intobytecodealliance:mainfrom
dicej:wasi-http-trailers

Conversation

@dicej
Copy link
Contributor

@dicej dicej commented Sep 6, 2024

Previously, we would return error-code::connection-terminated in this case, whereas the wasi-http spec says we should simply return none (i.e. it's not an error if there are no trailers present).

This also adds code to api_proxy_streaming.rs to check for trailers after reading the body content.

…sent

Previously, we would return `error-code::connection-terminated` in this case,
whereas the `wasi-http` spec says we should simply return `none` (i.e. it's not
an error if there are no trailers present).

This also adds code to `api_proxy_streaming.rs` to check for trailers after
reading the body content.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@dicej dicej requested a review from elliottt September 6, 2024 16:55
@dicej dicej requested a review from a team as a code owner September 6, 2024 16:55
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@alexcrichton
Copy link
Member

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Sep 6, 2024
Merged via the queue into bytecodealliance:main with commit 75ed0b6 Sep 6, 2024
dicej added a commit to dicej/runtimelab that referenced this pull request Nov 14, 2024
v26.0.1 includes bytecodealliance/wasmtime#9208, which
came up while implementing dotnet/runtime#109840

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
jkotas pushed a commit to dotnet/runtimelab that referenced this pull request Nov 14, 2024
v26.0.1 includes bytecodealliance/wasmtime#9208, which
came up while implementing dotnet/runtime#109840

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants