chaynabors opened PR #12950 from chaynabors:add-wasi-http-c-api to bytecodealliance:main:
Closes #12943
Adds wasi:http support to the C API following the same pattern as wasip2. The wasi-http feature implies wasi and is enabled by default.
New C API functions:
- wasmtime_component_linker_add_wasi_http
- wasmtime_context_set_wasi_http
chaynabors updated PR #12950.
chaynabors updated PR #12950.
chaynabors edited PR #12950:
Closes #12943 as requested.
Adds wasi:http support to the C API following the same pattern as wasip2. The wasi-http feature implies wasi and is enabled by default.
New C API functions:
- wasmtime_component_linker_add_wasi_http
- wasmtime_context_set_wasi_http
chaynabors edited PR #12950:
Closes #12943 as requested.
Adds wasi:http support to the C API following the same pattern as wasip2. The wasi-http feature implies wasi and is enabled by default.
New C API functions:
- wasmtime_component_linker_add_wasi_http
- wasmtime_context_set_wasi_http
It would be possible to construct WasiHttpCtx::new() directly, but I kept it optional and enabled consumers of the API to pass their own in the event that the WasiHttpCtx type becomes more configurable. Something that I think would be pretty reasonable.
chaynabors requested wasmtime-default-reviewers for a review on PR #12950.
chaynabors has marked PR #12950 as ready for review.
chaynabors requested wasmtime-core-reviewers for a review on PR #12950.
chaynabors requested alexcrichton for a review on PR #12950.
alexcrichton submitted PR review:
Thanks for this!
alexcrichton added PR #12950 Add wasi:http support to the C API to the merge queue.
alexcrichton merged PR #12950.
alexcrichton removed PR #12950 Add wasi:http support to the C API from the merge queue.
Last updated: Apr 13 2026 at 00:25 UTC