Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Envoy filter metadata example. #289

Merged
merged 9 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review: style.
Signed-off-by: Piotr Sikora <code@piotrsikora.dev>
  • Loading branch information
PiotrSikora committed Jan 15, 2025
commit ec7ce256adf45506e005be8ba3aded00d338d957
10 changes: 6 additions & 4 deletions examples/envoy_filter_metadata/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Proxy-Wasm plugin example: Envoy metadata

Proxy-Wasm plugin that demonstrates reading metadata set by other Envoy filters
Proxy-Wasm plugin that demonstrates reading metadata set by other Envoy filters.

### Building

Expand All @@ -17,15 +17,17 @@ and has a matching Envoy configuration.
$ docker compose up
```

Send a HTTP request to `localhost:10000` will return the configured response.
Send a HTTP request to `localhost:10000` that will return the configured response.

```sh
$ curl localhost:10000
Welcome, set the `x-custom-metadata` header to change the response!
```

Send a HTTP request to `localhost:10000` with a `x-custom-metadata` header value to get the uppercased value in the response.
The response will also set a response header `uppercased-metadata: SOME-VALUE`.
Send a HTTP request to `localhost:10000` with a `x-custom-metadata` header value to get
the uppercased value in the response.

The response will also contain a response header `uppercased-metadata: SOME-VALUE`.

```sh
$ curl localhost:10000 -H "x-custom-metadata: some-value"
Expand Down
Loading