tree: 4d1cb40d6d3a37a677c1d07f866761ef36dde387
  1. async.cc
  2. async.yaml
  3. Makefile
  4. README.md
plugins/experimental/wasm/examples/async/README.md

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