Fixed type in documentation related to custom filters

This commit is contained in:
Usman
2018-12-26 12:41:11 +00:00
parent 4f34127ebb
commit fc3ccbbdf1

View File

@@ -1532,7 +1532,7 @@ public class PreGatewayFilterFactory extends AbstractGatewayFilterFactory<PreGat
// grab configuration from Config object
return (exchange, chain) -> {
//If you want to build a "pre" filter you need to manipulate the
//request before calling change.filter
//request before calling chain.filter
ServerHttpRequest.Builder builder = exchange.getRequest().mutate();
//use builder to manipulate the request
return chain.filter(exchange.mutate().request(request).build());