Class WasmBodyMatcher

All Implemented Interfaces:
Matcher<String>

public class WasmBodyMatcher extends BodyMatcher<String>
Body matcher that delegates matching to a WASM module loaded in the WasmStore.

When WASM support is disabled (wasmEnabled=false), the matcher always returns false (no match) — consistent with the fail-closed design.

In addition to the request body, the matcher exposes the request method, path and headers to the module via the richer WASM ABI (see WasmRuntime). Modules that only export the legacy body-only match function continue to work unchanged.

Fails closed: returns false if the module is not loaded or throws.