Skip to content

Add wasi:http support#332

Open
chaynabors wants to merge 1 commit intobytecodealliance:mainfrom
chaynabors:add-wasi-http
Open

Add wasi:http support#332
chaynabors wants to merge 1 commit intobytecodealliance:mainfrom
chaynabors:add-wasi-http

Conversation

@chaynabors
Copy link
Copy Markdown
Contributor

Depends on bytecodealliance/wasmtime#12950 which adds wasmtime_component_linker_add_wasi_http and wasmtime_context_set_wasi_http to the C API.

Adds linker.add_wasi_http() and store.set_wasi_http() following the same pattern as add_wasip2 and set_wasi. _bindings.py was regenerated with cbindgen.py against the updated C headers.

@chaynabors
Copy link
Copy Markdown
Contributor Author

Tests depend on upstream. Will rerun when merged.

Copy link
Copy Markdown
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This'll unfortunately have to wait until Wasmtime 44 is released since there's no easy way to pull in the dev binaries here for the time being. Mind adding some tests though which mostly just call the methods and ensure everything's wired up correctly? No need for a full end-to-end test as that'd be a pretty gnarly *.wat.

@chaynabors
Copy link
Copy Markdown
Contributor Author

Added tests and ran against my local build. Happy to wait since team has access to a release in my fork that I'm pointing at.

@chaynabors chaynabors marked this pull request as ready for review April 3, 2026 18:22
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