add target
rustup target add wasm32-wasi
build
make build-wasm
Server expects that there is a header.wasm
file in the root directory of this repository.
make run-server
after wasm is compiled and server is running, it can be tested:
% curl localhost:8090/hello
X-Foo: Hello, World!
User-Agent: curl/8.1.2
Accept: */*