CPP example for making asynchronous requests for ATS Wasm Plugin

To compile async.wasm

Copy the yaml in this directory and the generated async.wasm to /usr/local/var/wasm/ and activate the plugin in plugin.config

  • wasm.so /usr/local/var/wasm/async.yaml

Make sure you have mapping rules in remap.config like below

You can trigger the asynchronous requests with a request with User-Agent set to test