Skip to content

Commit c0f98ab

Browse files
committed
Add support for ResponseHeaderModifier for HTTPRouteRule objects
Problem: Users want to add, set, and remove response headers. Solution: Use add_header and proxy_hide_header NGINX directives to support ResponseHeaderModifier. If the action is set, we configure the proxy_hide_header directive to remove the header if exists and add_header directive with the given value in the HTTPRoute spec. If the action is remove, we configure the proxy_hide_header directive to remove the header. If the action is add, we simply configure the add_header directive with the given value in the HTTPRoute spec.
1 parent 33e185b commit c0f98ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/content/overview/gateway-api-compatibility.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ See the [static-mode]({{< relref "/reference/cli-help.md#static-mode">}}) comman
157157
- `requestRedirect`: Supported except for the experimental `path` field. If multiple filters are configured, NGINX Gateway Fabric will choose the first and ignore the rest.
158158
- `requestHeaderModifier`: Supported. If multiple filters are configured, NGINX Gateway Fabric will choose the first and ignore the rest. Incompatible with `urlRewrite`.
159159
- `urlRewrite`: Supported. If multiple filters are configured, NGINX Gateway Fabric will choose the first and ignore the rest. Incompatible with `requestHeaderModifier`.
160-
- `responseHeaderModifier`, `requestMirror`, `extensionRef`: Not supported.
160+
- `responseHeaderModifier`: Supported.
161+
- `requestMirror`, `extensionRef`: Not supported.
161162
- `backendRefs`: Partially supported. Backend ref `filters` are not supported.
162163
- `status`
163164
- `parents`

0 commit comments

Comments
 (0)