GatewayFilter (NameValueConfig config) {
((exchangechain) -> {
.info(.getName().getName())ServerHttpRequest modifiedRequest=exchange.getRequest()
.mutate()
.build()ServerWebExchange modifiedExchange=exchange.mutate()
.request(modifiedRequest)
.build()chain.filter(modifiedExchange)})}
GatewayFilter (NameValueConfig config) {
GatewayFilter() {
Mono<Void> (ServerWebExchange exchangeGatewayFilterChain chain) {
.info(.getName().getName())ServerHttpRequest modifiedRequest=exchange.getRequest()
.mutate()
.build()ServerWebExchange modifiedExchange=exchange.mutate()
.request(modifiedRequest)
.build()chain.filter(modifiedExchange)}
}}
函数式编程是一种编程方式