Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 907 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 907 Bytes

http-headers-wasm

Sample envoy http filter using a wasm module

This code uses proxy-wasm-go-sdk and tinygo to build the wasm module

Building the module

Make will launch a docker container with tinygo to build and run unit tests

$ make 

Testing locally

One can test this locally using one of the two methods

Using docker

$ make run-with-docker

Using docker-compose

$ docker-compose -f test/docker-compose.yaml --project-directory $(pwd) up

Both of these expose the proxy in port 8000. Try curl http://localhost:8000 -v and watch for response headers and proxy logs.