diff --git a/multi/multi_gateway-request-predicates-factories.html b/multi/multi_gateway-request-predicates-factories.html index c1b57fab..30526814 100644 --- a/multi/multi_gateway-request-predicates-factories.html +++ b/multi/multi_gateway-request-predicates-factories.html @@ -45,7 +45,7 @@ uri: http://example.org predicates: - Header=X-Request-Id, \d+

-

This route matches if the request has a header named X-Request-Id whos value matches the \d+ regular expression (has a value of one or more digits).

4.6 Host Route Predicate Factory

The Host Route Predicate Factory takes one parameter: the host name pattern. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern.

application.yml.  +

This route matches if the request has a header named X-Request-Id whos value matches the \d+ regular expression (has a value of one or more digits).

4.6 Host Route Predicate Factory

The Host Route Predicate Factory takes one parameter: a list of host name patterns. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern.

application.yml. 

spring:
   cloud:
     gateway:
@@ -53,8 +53,8 @@
       - id: host_route
         uri: http://example.org
         predicates:
-        - Host=**.somehost.org

-

This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org.

4.7 Method Route Predicate Factory

The Method Route Predicate Factory takes one parameter: the HTTP method to match.

application.yml.  + - Host=**.somehost.org,**.anotherhost.org

+

This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org or www.anotherhost.org.

4.7 Method Route Predicate Factory

The Method Route Predicate Factory takes one parameter: the HTTP method to match.

application.yml. 

spring:
   cloud:
     gateway:
diff --git a/single/spring-cloud-gateway.html b/single/spring-cloud-gateway.html
index 8f7cb693..9db07619 100644
--- a/single/spring-cloud-gateway.html
+++ b/single/spring-cloud-gateway.html
@@ -47,7 +47,7 @@ for details on setting up your build system with the current Spring Cloud Releas
         uri: http://example.org
         predicates:
         - Header=X-Request-Id, \d+

-

This route matches if the request has a header named X-Request-Id whos value matches the \d+ regular expression (has a value of one or more digits).

4.6 Host Route Predicate Factory

The Host Route Predicate Factory takes one parameter: the host name pattern. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern.

application.yml.  +

This route matches if the request has a header named X-Request-Id whos value matches the \d+ regular expression (has a value of one or more digits).

4.6 Host Route Predicate Factory

The Host Route Predicate Factory takes one parameter: a list of host name patterns. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern.

application.yml. 

spring:
   cloud:
     gateway:
@@ -55,8 +55,8 @@ for details on setting up your build system with the current Spring Cloud Releas
       - id: host_route
         uri: http://example.org
         predicates:
-        - Host=**.somehost.org

-

This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org.

4.7 Method Route Predicate Factory

The Method Route Predicate Factory takes one parameter: the HTTP method to match.

application.yml.  + - Host=**.somehost.org,**.anotherhost.org

+

This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org or www.anotherhost.org.

4.7 Method Route Predicate Factory

The Method Route Predicate Factory takes one parameter: the HTTP method to match.

application.yml. 

spring:
   cloud:
     gateway:
diff --git a/spring-cloud-gateway.xml b/spring-cloud-gateway.xml
index 00d1433c..a3776dff 100644
--- a/spring-cloud-gateway.xml
+++ b/spring-cloud-gateway.xml
@@ -145,7 +145,7 @@ for details on setting up your build system with the current Spring Cloud Releas
 
 
Host Route Predicate Factory -The Host Route Predicate Factory takes one parameter: the host name pattern. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern. +The Host Route Predicate Factory takes one parameter: a list of host name patterns. The pattern is an Ant style pattern with . as the separator. This predicates matches the Host header that matches the pattern. application.yml @@ -156,10 +156,10 @@ for details on setting up your build system with the current Spring Cloud Releas - id: host_route uri: http://example.org predicates: - - Host=**.somehost.org + - Host=**.somehost.org,**.anotherhost.org -This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org. +This route would match if the request has a Host header has the value www.somehost.org or beta.somehost.org or www.anotherhost.org.
Method Route Predicate Factory