Problem. HttpClient::fetch is defined over the bindgen-generated Request/Response mirror types, which may duplicate shapes that already exist natively (the http crate's types, reqwest's, or wasi-http's).
Proposed. Check whether the seam should speak an inherent type (e.g. http::Request/http::Response) with conversion to the WIT mirror types confined to the glue, so future real backends implement against standard types.
Notes. Raised in review feedback on the component-seam PR: #99 (comment)
Problem.
HttpClient::fetchis defined over the bindgen-generatedRequest/Responsemirror types, which may duplicate shapes that already exist natively (thehttpcrate's types, reqwest's, or wasi-http's).Proposed. Check whether the seam should speak an inherent type (e.g.
http::Request/http::Response) with conversion to the WIT mirror types confined to the glue, so future real backends implement against standard types.Notes. Raised in review feedback on the component-seam PR: #99 (comment)