Hey hey, I've just been looking for some examples to follow for translating a received Hyper service request into a WASI HTTP request (targeting wasi:http/types@0.3.0-rc-2025-09-16.{request} specifically)
Figured tests would be a good place to look, would anyone be able to confirm that looking at https://github.com/bytecodealliance/wasmtime/blob/main/crates/wasi-http/tests/all/p2.rs#L161 would be the best place to start?
In addition to tests the wasmtime serve command source, while it's got a lot of other stuff going on, might also be helpful
Perfect, this looks great, very readable, thanks Alex!
Last updated: Dec 06 2025 at 06:05 UTC