README.md 373 B

WasmEdge WASI Socket Http Server Demo

This demo runs an echo server on localhost.

Build

cargo build --target wasm32-wasi --release

Run

wasmedge target/wasm32-wasi/release/http_server.wasm

Test

In another terminal window, do the following.

curl -X POST http://127.0.0.1:1234 -d "name=WasmEdge"
echo: name=WasmEdge