Skip to content

wasi-http: Pass transmission errors through middleware - #14147

Merged
pchickey merged 3 commits into
bytecodealliance:mainfrom
adamrk:middleware-pass-error
Aug 18, 2026
Merged

wasi-http: Pass transmission errors through middleware#14147
pchickey merged 3 commits into
bytecodealliance:mainfrom
adamrk:middleware-pass-error

Conversation

@adamrk

@adamrk adamrk commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

{request, response}.new return a future which can be used to detect if there has been an error sending the request or response. Any middleware needs to pass that result on as an argument to consume-body for errors to be passed through that layer. This PR modifies the middleware example to do that and also adds a test to check that the error does propagate through.

@adamrk
adamrk requested review from a team as code owners August 17, 2026 18:16
@adamrk
adamrk requested review from pchickey and removed request for a team August 17, 2026 18:16
Comment thread crates/test-programs/src/bin/p3_http_middleware.rs Outdated
Co-authored-by: Pat Hickey <p.hickey@f5.com>
@pchickey
pchickey added this pull request to the merge queue Aug 18, 2026
Merged via the queue into bytecodealliance:main with commit 1223d47 Aug 18, 2026
53 checks passed
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