Stream: git-wasmtime

Topic: wasmtime / PR #12227 wasmtime-wasi-http: Replace new_inco...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 29 2025 at 04:19):

namse opened PR #12227 from namse:main to bytecodealliance:main:

Currently, WasiHttpView::new_incoming_request enforces that the request body's error type must be exactly hyper::Error. This limits flexibility for implementations that might use a custom body type with a different error type that is still compatible with WASI HTTP errors.

This PR relaxes the trait bound on B::Error from strict hyper::Error to Into<ErrorCode>. To support this, a From<hyper::Error> implementation for ErrorCode has been added. This allows new_incoming_request to accept any body whose errors can be converted into an ErrorCode, making the API more generic and reusable.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 29 2025 at 04:19):

namse requested wasmtime-wasi-reviewers for a review on PR #12227.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 05 2026 at 15:30):

alexcrichton submitted PR review:

Thanks for this!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 05 2026 at 16:05):

alexcrichton merged PR #12227.


Last updated: Jan 09 2026 at 13:15 UTC