Sample component that exposes wasi:http incrementing a counter based on the http path.
Compose with the valkey-client:
wac plug sample-http-incrementor.wasm --plug valkey-client.wasm -o valkey-http-incrementor.wasmStart a Valkey server:
docker run --rm -p 6379:6379 valkey/valkey:8Start the incrementor:
wasmtime serve -Sconfig -Sinherit-network -Sallow-ip-name-lookup -Scli valkey-http-incrementor.wasmIncrement all the things:
curl http://localhost:8080/hello1curl http://localhost:8080/hello2