Stream: git-wasmtime

Topic: wasmtime / PR #12754 Refactor `wasi:http` headers' host r...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 19:55):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 19:55):

alexcrichton requested dicej for a review on PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 19:55):

alexcrichton opened PR #12754 from alexcrichton:p3-limit-headers to bytecodealliance:main:

This commit is a follow-on/extension of #12748 and extends the changes made for WASIp2 headers in #12652 to the WASIp3 implementation as well. This is done through a number of refactorings to make the WASIp2 and WASIp3 implementations more similar in terms of how they represent headers. Changes here are:

cc #12674

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 19:55):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 20:03):

alexcrichton updated PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 20:04):

alexcrichton updated PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 20:11):

alexcrichton commented on PR #12754:

Another caveat to this implementation: WASIp2 no longer uses child resources for headers, meaning that we're probably technically in violation of the spec. That being said the WASIp2 semantics now mirror WASIp3, so I'd personally consider this ok since WASIp3 is the defacto-expectations in the future.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 21:18):

pchickey commented on PR #12754:

WASIp2 no longer uses child resources for headers, meaning that we're probably technically in violation of the spec.

As I've said elsewhere previously, child resources were the wrong way to go about literally everything they were used for and I am glad we are getting rid of them in WASIp3. I don't think that lifting the restriction from the implementation in p2 is harmful - all existing guest programs that expected to follow the child rules will continue to work properly. Though there is some risk that a new p2 guest is written without expectation of the child rules and is non-portable to hosts with an older version of wasmtime-wasi-http, I don't know if we need to worry about this in practice.

Also, FWIW, in the two private embeddings Chris and I work on, we didn't use child resources for headers.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 21:23):

pchickey submitted PR review:

Thanks, this is a much nicer structure.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 21:49):

alexcrichton added PR #12754 Refactor wasi:http headers' host representation to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 22:14):

alexcrichton merged PR #12754.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 10 2026 at 22:14):

alexcrichton removed PR #12754 Refactor wasi:http headers' host representation from the merge queue.


Last updated: Mar 23 2026 at 16:19 UTC