Add resolution method using WASM
Add a resolution method so that resolvers can be resolved by calling a function defined in a WebAssembly binary.
The usefulness of this feature is likely limited, because the most common use case for mod_resolve is to perform a small piece of custom logic and query local and remote information sources (API). A bash or python script combined with a mod_resolve cache will suffice for almost all use cases.
WASM support would entail:
- Add a wasm engine such as wasm3 to the module.
- Are timeouts/deadlines for executing code possible?
- Per-resolver,
- load a wasm binary from a file (best at configuration time)
- call a named function in the wasm binary passing parameters built from the usual ap_expr
- Accept the return value (how to do multi-value returns?)
- Optionally, add an in-wasm API to access the request context directly from within wasm.
- This will complicate deducing the function's real parameter set