WASM Configuration:

Enable or disable WASM body matching. When enabled, users can upload WebAssembly modules as custom body matchers. WASM modules run inside a pure-Java interpreter (chicory) and are sandboxed from the host. See WASM Custom Rules for details.

Type: boolean Default: false

Java Code:

ConfigurationProperties.wasmEnabled(boolean enable)

System Property:

-Dmockserver.wasmEnabled=...

Environment Variable:

MOCKSERVER_WASM_ENABLED=...

Property File:

mockserver.wasmEnabled=...

Example:

-Dmockserver.wasmEnabled="true"

Maximum number of WASM linear memory pages allowed per module. Each page is 64 KiB, so the default of 256 pages allows up to 16 MiB of linear memory per WASM module. Increase this if your WASM modules need to process large request bodies.

Type: int Default: 256

Java Code:

ConfigurationProperties.wasmMaxMemoryPages(int pages)

System Property:

-Dmockserver.wasmMaxMemoryPages=...

Environment Variable:

MOCKSERVER_WASM_MAX_MEMORY_PAGES=...

Property File:

mockserver.wasmMaxMemoryPages=...

Example:

-Dmockserver.wasmMaxMemoryPages="512"