nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.29k stars 325 forks source link

WASI-HTTP (component model) support for WebAssembly module #991

Open lcrilly opened 8 months ago

lcrilly commented 8 months ago

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.

ac000 commented 8 months ago

This is of course an entirely new module...

ac000 commented 8 months ago

Current work can be found here.

tippexs commented 8 months ago

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.

ac000 commented 8 months ago

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