namse opened PR #12227 from namse:main to bytecodealliance:main:
Currently,
WasiHttpView::new_incoming_requestenforces that the request body's error type must be exactlyhyper::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::Errorfrom stricthyper::ErrortoInto<ErrorCode>. To support this, aFrom<hyper::Error>implementation forErrorCodehas been added. This allowsnew_incoming_requestto accept any body whose errors can be converted into anErrorCode, making the API more generic and reusable.
namse requested wasmtime-wasi-reviewers for a review on PR #12227.
alexcrichton submitted PR review:
Thanks for this!
alexcrichton merged PR #12227.
Last updated: Jan 09 2026 at 13:15 UTC