Skip to content

feat(wasm): add a wasi:http transport for WASI targets - #3134

Open
jrandolf wants to merge 3 commits into
seanmonstar:masterfrom
jrandolf:wasi-http-client
Open

jrandolf wants to merge 3 commits into
seanmonstar:masterfrom
jrandolf:wasi-http-client

Conversation

@jrandolf

@jrandolf jrandolf commented Nov 11, 2026 •

Copy link
Copy Markdown

reqwest does not build for wasm32-wasip2 or wasm32-wasip3. This PR adds a transport for those targets: the wasm client sends through wasi:http/client 0.3 (the wasip3 crate), and the host makes the connection and does TLS. I need it for apps that are built as WebAssembly components.

Refs #2294 and #2979. It builds on #3120 by @avkonst, who is a co-author of the first commit. #3120 uses wasip3 0.9. With that version, a request that has a body never ends when the app uses wit-bindgen 0.63, so this PR uses wasip3 0.10.

@jrandolf

jrandolf commented Nov 11, 2026 •

Copy link
Copy Markdown
Author

@seanmonstar Could you look at it when you have time, and tell me if you want it split or want the design in #2294 first?

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.

1 participant