Proxy-Wasm plugin that injects HTTP response header with a value from Envoy config.
$ cargo build --target wasm32-wasi --release
This example can be run with docker compose
and has a matching Envoy configuration.
$ docker compose up
Send HTTP request to localhost:10000/hello
:
$ curl -I localhost:10000/hello
HTTP/1.1 200 OK
content-length: 40
content-type: text/plain
custom-header: The secret to life is meaningless unless you discover it yourself
date: Tue, 22 Nov 2022 04:09:05 GMT
server: envoy