Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 963 Bytes

File metadata and controls

39 lines (24 loc) · 963 Bytes

echo service

This example uses a HTTP echo service to reflect back the request made by the client. You can test different ways of injecting and overriding features.

What we'll show

With this example, we use an echo service to show how feature state gets injected into the incoming requests. The features that are enabled will be listed in the X-Features header of the request.

Additionally, features can be enabled explicitly, by passing the x-feature-override header to the incoming request. The lists will be merged.

TODO enable Host header based targeting as well

Try it out

### Before you start

Install Istio and the relevant adapter (see this readme)

Deploy the echo service

  1. Install the echo service
make
  1. Test the echo service
curl --resolve echo.localhost:80:127.0.0.1 -vvv http://echo.localhost

Testing it out

Implicit features will be injected by the system to any request