spring:
+ cloud:
+ gateway:
+ routes:
+ - id: map_request_header_route
+ uri: https://example.org
+ filters:
+ - MapRequestHeader=Bar, X-Request-Foo
+diff --git a/spring-cloud-gateway.html b/spring-cloud-gateway.html index 3722fcb6..060196a2 100644 --- a/spring-cloud-gateway.html +++ b/spring-cloud-gateway.html @@ -122,6 +122,7 @@ $(addBlockSwitches);
The MapRequestHeader GatewayFilter Factory takes 'fromHeader' and 'toHeader' parameters. It creates a new named header (toHeader) and the value is extracted out of an existing named header (fromHeader) from the incoming http request. If the input header does not exist then the filter has no impact. If the new named header already exists then it’s values will be augmented with the new values.
+spring:
+ cloud:
+ gateway:
+ routes:
+ - id: map_request_header_route
+ uri: https://example.org
+ filters:
+ - MapRequestHeader=Bar, X-Request-Foo
+This will add X-Request-Foo:<values> header to the downstream request’s with updated values from the incoming http request Bar header.
The PrefixPath GatewayFilter Factory takes a single prefix parameter.