Browse Source

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

Fixed type in documentation related to custom filters
pull/772/head
Ryan Baxter 6 years ago committed by GitHub
parent
commit
b2a12a7177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/src/main/asciidoc/spring-cloud-gateway.adoc

2
docs/src/main/asciidoc/spring-cloud-gateway.adoc

@ -1532,7 +1532,7 @@ public class PreGatewayFilterFactory extends AbstractGatewayFilterFactory<PreGat @@ -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());

Loading…
Cancel
Save