Merge pull request #737 from envious/documentation-type-fix

Fixed type in documentation related to custom filters
This commit is contained in:
Ryan Baxter
2019-01-07 19:43:55 -05:00
committed by GitHub

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());