Stream: wasi

Topic: Request<hyper::body::Incoming> to wasi::http::types::Request


view this post on Zulip Theodore Brockman (Sep 28 2025 at 20:04):

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?

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant - bytecodealliance/wasmtime

view this post on Zulip Alex Crichton (Sep 29 2025 at 14:19):

In addition to tests the wasmtime serve command source, while it's got a lot of other stuff going on, might also be helpful

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant - bytecodealliance/wasmtime

view this post on Zulip Theodore Brockman (Sep 29 2025 at 18:07):

Perfect, this looks great, very readable, thanks Alex!


Last updated: Dec 06 2025 at 06:05 UTC