Skip to content

Latest commit

 

History

History

http_server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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