gateway-GatewayFilter Factory 过滤器工厂

 

 

AddRequestHeader GatewayFilter Factory

spring:
cloud:
gateway:
routes:
- id: user
uri: http://127.0.0.1:8082
predicates:
- Path=/user/**
filters:
- AddRequestHeader=X-Request-Red, Blue
此请求将X-Request-red:blue标头添加到所有匹配请求的下游请求标头中

AddRequestParameter GatewayFilter工厂

spring:
cloud:
gateway:
routes:
- id: user
uri: http://127.0.0.1:8082
predicates:
- Path=/user/**
filters:
- AddRequestParameter=red, blue
将添加red=blue到所有匹配请求的下游请求的查询字符串中

AddResponseHeader GatewayFilter工厂

spring:
cloud:
gateway:
routes:
- id: user
uri: http://127.0.0.1:8082
predicates:
- Path=/user/**
filters:
- AddResponseHeader=X-Response-Red, Blue
X-Response-Foo:Bar标头添加到所有匹配请求的下游响应标头中。

DedupeResponseHeader GatewayFilter工厂

spring:
cloud:
gateway:
routes:
- id: user
uri: http://127.0.0.1:8082
predicates:
- Path=/user/**
filters:
- DedupeResponseHeader=Access-Control-Allow-Credentials Access-Control-Allow-Origin
 

Spring Cloud 断路器网关过滤器工厂




















































上一篇:Glue:Resource:aws_glue_crawler


下一篇:微服务之网关