About

A minimal Wasm HTTP filter written in Go with the proxy-wasm Go SDK. It adds a configurable x-wasm-header header to every response.

The module is compiled to WebAssembly with the standard Go toolchain (GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared) and executed by Envoy's built-in V8 Wasm runtime.

Configuration

  • header_value: The value to set in the x-wasm-header header (default: "example").

Usage Examples

Basic Usage

Run the example extension locally

boe run --extension example-wasm-go

Custom Header Value

Configure a custom header value

boe run --extension example-wasm-go --config '{"header_value": "my-custom-value"}'