This demo runs an echo server on localhost
.
cargo build --target wasm32-wasi --release
wasmedge target/wasm32-wasi/release/http_server.wasm
In another terminal window, do the following.
curl -X POST http://127.0.0.1:1234 -d "name=WasmEdge"
echo: name=WasmEdge