You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Configure the HTTPRoute with RequestHeaderModifier filter
87
85
88
86
Create a HTTPRoute that exposes the header application outside the cluster using the listener created in the previous section. Use the following command:
Next, let's create a simple HTTPRoute that exposes the header application outside the cluster using the listener created in the previous section. To do this, create the following HTTPRoute:
208
+
Create a HTTPRoute that exposes the header application outside the cluster using the listener created in the previous section. You can do this with the following command:
213
209
214
210
```yaml
215
211
kubectl apply -f - <<EOF
@@ -242,12 +238,11 @@ This HTTPRoute has a few important properties:
242
238
243
239
### Send traffic to the Headers application
244
240
245
-
We will use`curl` with the `-i` flag to access the application and include the response headers in the output:
241
+
Use`curl` with the `-i` flag to access the application and include the response headers in the output:
In the output above, you can see that the headers application modifies the following custom headers:
343
-
344
337
In the output above you can notice the modified response headers as the `X-Header-Unmodified` remains unchanged as we did not include it in the filter and `X-Header-Remove` header is absent. The header `X-Header-Add` gets appended with the new value and `X-Header-Set` gets overwritten to `overwritten-value` as defined in the *HttpRoute*.
345
338
346
-
## Further Reading
339
+
---
340
+
341
+
## Further reading
347
342
348
343
To learn more about the Gateway API and the resources we created in this guide, check out the following Kubernetes documentation resources:
0 commit comments