Closed brendandburns closed 1 year ago
The types
module is defined in this WIT file:
https://github.com/WebAssembly/wasi-http/blob/main/wit/types.wit
Note that the fact that it is called types
is actually due to a bug in the wit-bindgen
tool which didn't use namespaces correctly.
When we revise this forward to be a v2
the name of this module will move to
wasi::http::
Just for context, there is an intersection between the wit
files, the wit-bindgen
tool and the guest SDK that is used to access the functionality.
I will send a PR to improve the documentation of how this works.
Thanks for the explanations!
cc @achille-roussel
This implements HTTP serving in the
wasi-http
specification. It enableswasi-run
to act as an HTTP server for web assembly.Let me know if you'd prefer that this was in a different binary.
There are C and Go examples.