Skip to content

Commit

Permalink
doc: adjust example
Browse files Browse the repository at this point in the history
Signed-off-by: Martijn Swaagman <[email protected]>
  • Loading branch information
Swaagie committed Nov 4, 2024
1 parent 520710f commit 4077239
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/filter_metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ and has a matching Envoy configuration.
$ docker compose up
```

Send HTTP request to `localhost:10000/` with a `x-custom-metadata` header value.
Send a HTTP request to `localhost:10000/` will return the configured response.

> Not setting the header will return the configured welcome message.
```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.

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

0 comments on commit 4077239

Please sign in to comment.