unit icon indicating copy to clipboard operation
unit copied to clipboard

WASI-HTTP (component model) support for WebAssembly module

Open lcrilly opened this issue 2 years ago • 4 comments

Evolve the Wasm language module to support the WASI-HTTP interface so that a Wasm component that imports WASI-HTTP can run natively on Unit.

lcrilly avatar Nov 02 '23 15:11 lcrilly

This is of course an entirely new module...

ac000 avatar Nov 02 '23 16:11 ac000

Current work can be found here.

ac000 avatar Nov 02 '23 16:11 ac000

Great progress! In the meantime we have published a Docker Image that provides the current state for early testings! I will push documentation to this thread. Please find the image on docker hub: https://hub.docker.com/r/nginx/unit-preview

To get started with the image pull it

docker pull nginx/unit-preview:wasm-wasi-http

The current implementation of wasm-wasi-http supports Wasm components! Make sure to load it as such. For more information check the README.

tippexs avatar Nov 03 '23 06:11 tippexs

I have an initial wasi-http version of luw-echo-request.c

ac000 avatar Nov 25 '23 02:11 ac000