diff --git a/multi/multi__configuration.html b/multi/multi__configuration.html index f978c0ca..275d6896 100644 --- a/multi/multi__configuration.html +++ b/multi/multi__configuration.html @@ -9,7 +9,6 @@ cloud: gateway: routes: - # ===================================== - id: setstatus_route uri: http://example.org filters: diff --git a/multi/multi_gateway-request-predicates-factories.html b/multi/multi_gateway-request-predicates-factories.html index 7a59d002..e26d3674 100644 --- a/multi/multi_gateway-request-predicates-factories.html +++ b/multi/multi_gateway-request-predicates-factories.html @@ -5,7 +5,6 @@ cloud: gateway: routes: - # ===================================== - id: after_route uri: http://example.org predicates: @@ -15,7 +14,6 @@ cloud: gateway: routes: - # ===================================== - id: before_route uri: http://example.org predicates: @@ -25,7 +23,6 @@ cloud: gateway: routes: - # ===================================== - id: between_route uri: http://example.org predicates: @@ -35,7 +32,6 @@ cloud: gateway: routes: - # ===================================== - id: cookie_route uri: http://example.org predicates: @@ -45,7 +41,6 @@ cloud: gateway: routes: - # ===================================== - id: header_route uri: http://example.org predicates: @@ -55,7 +50,6 @@ cloud: gateway: routes: - # ===================================== - id: host_route uri: http://example.org predicates: @@ -65,7 +59,6 @@ cloud: gateway: routes: - # ===================================== - id: method_route uri: http://example.org predicates: @@ -75,7 +68,6 @@ cloud: gateway: routes: - # ===================================== - id: host_route uri: http://example.org predicates: @@ -85,7 +77,6 @@ cloud: gateway: routes: - # ===================================== - id: query_route uri: http://example.org predicates: @@ -95,7 +86,6 @@ cloud: gateway: routes: - # ===================================== - id: query_route uri: http://example.org predicates: @@ -105,7 +95,6 @@ cloud: gateway: routes: - # ===================================== - id: remoteaddr_route uri: http://example.org predicates: diff --git a/multi/multi_gateway-route-filters.html b/multi/multi_gateway-route-filters.html index f0d78312..81bd1452 100644 --- a/multi/multi_gateway-route-filters.html +++ b/multi/multi_gateway-route-filters.html @@ -5,7 +5,6 @@ cloud: gateway: routes: - # ===================================== - id: add_request_header_route uri: http://example.org filters: @@ -15,7 +14,6 @@ cloud: gateway: routes: - # ===================================== - id: add_request_parameter_route uri: http://example.org filters: @@ -25,7 +23,6 @@ cloud: gateway: routes: - # ===================================== - id: add_request_header_route uri: http://example.org filters: @@ -35,17 +32,29 @@ cloud: gateway: routes: - # ===================================== - id: hytstrix_route uri: http://example.org filters: - Hystrix=myCommandName

-

This wraps the remaining filters in a HystrixCommand with command name myCommandName.

5.5 PrefixPath GatewayFilter Factory

The PrefixPath GatewayFilter Factory takes a single prefix parameter.

application.yml.  +

This wraps the remaining filters in a HystrixCommand with command name myCommandName.

The Hystrix filter takes an optional fallbackUri parameter. Currently, only forward: schemed URIs are supported. If the fallback is called, the request will be forwarded to the controller matched by the URI.

application.yml.  +

spring:
+  cloud:
+    gateway:
+      routes:
+      - id: hytstrix_route
+        uri: http://example.org
+        filters:
+        - name: Hystrix
+          args:
+            name: fallbackcmd
+            fallbackUri: forward:/fallbackcontroller
+
+This will forward to the `/fallbackcontroller` when the Hystrix fallback is called.

+

5.5 PrefixPath GatewayFilter Factory

The PrefixPath GatewayFilter Factory takes a single prefix parameter.

application.yml. 

spring:
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: prefixpath_route
         uri: http://example.org
         filters:
@@ -55,7 +64,6 @@
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: preserve_host_route
         uri: http://example.org
         filters:
@@ -69,7 +77,6 @@
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: requestratelimiter_route
         uri: http://example.org
         filters:
@@ -84,7 +91,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: prefixpath_route
         uri: http://example.org
         filters:
@@ -94,7 +100,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: removerequestheader_route
         uri: http://example.org
         filters:
@@ -104,7 +109,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: removeresponseheader_route
         uri: http://example.org
         filters:
@@ -114,7 +118,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: rewritepath_route
         uri: http://example.org
         predicates:
@@ -126,7 +129,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setpath_route
         uri: http://example.org
         predicates:
@@ -138,7 +140,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setresponseheader_route
         uri: http://example.org
         filters:
@@ -148,7 +149,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setstatusstring_route
         uri: http://example.org
         filters:
diff --git a/single/spring-cloud-gateway.html b/single/spring-cloud-gateway.html
index 66a98775..207c23e1 100644
--- a/single/spring-cloud-gateway.html
+++ b/single/spring-cloud-gateway.html
@@ -7,7 +7,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: after_route
         uri: http://example.org
         predicates:
@@ -17,7 +16,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: before_route
         uri: http://example.org
         predicates:
@@ -27,7 +25,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: between_route
         uri: http://example.org
         predicates:
@@ -37,7 +34,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: cookie_route
         uri: http://example.org
         predicates:
@@ -47,7 +43,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: header_route
         uri: http://example.org
         predicates:
@@ -57,7 +52,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: host_route
         uri: http://example.org
         predicates:
@@ -67,7 +61,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: method_route
         uri: http://example.org
         predicates:
@@ -77,7 +70,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: host_route
         uri: http://example.org
         predicates:
@@ -87,7 +79,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: query_route
         uri: http://example.org
         predicates:
@@ -97,7 +88,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: query_route
         uri: http://example.org
         predicates:
@@ -107,7 +97,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: remoteaddr_route
         uri: http://example.org
         predicates:
@@ -117,7 +106,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_header_route
         uri: http://example.org
         filters:
@@ -127,7 +115,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_parameter_route
         uri: http://example.org
         filters:
@@ -137,7 +124,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_header_route
         uri: http://example.org
         filters:
@@ -147,17 +133,29 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: hytstrix_route
         uri: http://example.org
         filters:
         - Hystrix=myCommandName

-

This wraps the remaining filters in a HystrixCommand with command name myCommandName.

5.5 PrefixPath GatewayFilter Factory

The PrefixPath GatewayFilter Factory takes a single prefix parameter.

application.yml.  +

This wraps the remaining filters in a HystrixCommand with command name myCommandName.

The Hystrix filter takes an optional fallbackUri parameter. Currently, only forward: schemed URIs are supported. If the fallback is called, the request will be forwarded to the controller matched by the URI.

application.yml.  +

spring:
+  cloud:
+    gateway:
+      routes:
+      - id: hytstrix_route
+        uri: http://example.org
+        filters:
+        - name: Hystrix
+          args:
+            name: fallbackcmd
+            fallbackUri: forward:/fallbackcontroller
+
+This will forward to the `/fallbackcontroller` when the Hystrix fallback is called.

+

5.5 PrefixPath GatewayFilter Factory

The PrefixPath GatewayFilter Factory takes a single prefix parameter.

application.yml. 

spring:
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: prefixpath_route
         uri: http://example.org
         filters:
@@ -167,7 +165,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: preserve_host_route
         uri: http://example.org
         filters:
@@ -181,7 +178,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: requestratelimiter_route
         uri: http://example.org
         filters:
@@ -196,7 +192,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: prefixpath_route
         uri: http://example.org
         filters:
@@ -206,7 +201,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: removerequestheader_route
         uri: http://example.org
         filters:
@@ -216,7 +210,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: removeresponseheader_route
         uri: http://example.org
         filters:
@@ -226,7 +219,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: rewritepath_route
         uri: http://example.org
         predicates:
@@ -238,7 +230,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setpath_route
         uri: http://example.org
         predicates:
@@ -250,7 +241,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setresponseheader_route
         uri: http://example.org
         filters:
@@ -260,7 +250,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setstatusstring_route
         uri: http://example.org
         filters:
@@ -278,7 +267,6 @@ KeyResolver userKeyResolver() {
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: setstatus_route
         uri: http://example.org
         filters:
diff --git a/spring-cloud-gateway.xml b/spring-cloud-gateway.xml
index 22383dad..8cbfb789 100644
--- a/spring-cloud-gateway.xml
+++ b/spring-cloud-gateway.xml
@@ -57,7 +57,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: after_route
         uri: http://example.org
         predicates:
@@ -76,7 +75,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: before_route
         uri: http://example.org
         predicates:
@@ -95,7 +93,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: between_route
         uri: http://example.org
         predicates:
@@ -114,7 +111,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: cookie_route
         uri: http://example.org
         predicates:
@@ -133,7 +129,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: header_route
         uri: http://example.org
         predicates:
@@ -152,7 +147,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: host_route
         uri: http://example.org
         predicates:
@@ -171,7 +165,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: method_route
         uri: http://example.org
         predicates:
@@ -190,7 +183,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: host_route
         uri: http://example.org
         predicates:
@@ -210,7 +202,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: query_route
         uri: http://example.org
         predicates:
@@ -225,7 +216,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: query_route
         uri: http://example.org
         predicates:
@@ -244,7 +234,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: remoteaddr_route
         uri: http://example.org
         predicates:
@@ -267,7 +256,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_header_route
         uri: http://example.org
         filters:
@@ -286,7 +274,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_parameter_route
         uri: http://example.org
         filters:
@@ -305,7 +292,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: add_request_header_route
         uri: http://example.org
         filters:
@@ -324,7 +310,6 @@ for details on setting up your build system with the current Spring Cloud Releas
   cloud:
     gateway:
       routes:
-      # =====================================
       - id: hytstrix_route
         uri: http://example.org
         filters:
@@ -332,6 +317,25 @@ for details on setting up your build system with the current Spring Cloud Releas
 
 
 This wraps the remaining filters in a HystrixCommand with command name myCommandName.
+The Hystrix filter takes an optional fallbackUri parameter. Currently, only forward: schemed URIs are supported. If the fallback is called, the request will be forwarded to the controller matched by the URI.
+
+application.yml
+
+spring:
+  cloud:
+    gateway:
+      routes:
+      - id: hytstrix_route
+        uri: http://example.org
+        filters:
+        - name: Hystrix
+          args:
+            name: fallbackcmd
+            fallbackUri: forward:/fallbackcontroller
+
+This will forward to the `/fallbackcontroller` when the Hystrix fallback is called.
+
+
 
 
PrefixPath GatewayFilter Factory @@ -343,7 +347,6 @@ for details on setting up your build system with the current Spring Cloud Releas cloud: gateway: routes: - # ===================================== - id: prefixpath_route uri: http://example.org filters: @@ -362,7 +365,6 @@ for details on setting up your build system with the current Spring Cloud Releas cloud: gateway: routes: - # ===================================== - id: preserve_host_route uri: http://example.org filters: @@ -394,7 +396,6 @@ for details on setting up your build system with the current Spring Cloud Releas cloud: gateway: routes: - # ===================================== - id: requestratelimiter_route uri: http://example.org filters: @@ -422,7 +423,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: prefixpath_route uri: http://example.org filters: @@ -473,7 +473,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: removerequestheader_route uri: http://example.org filters: @@ -492,7 +491,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: removeresponseheader_route uri: http://example.org filters: @@ -511,7 +509,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: rewritepath_route uri: http://example.org predicates: @@ -591,7 +588,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: setpath_route uri: http://example.org predicates: @@ -612,7 +608,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: setresponseheader_route uri: http://example.org filters: @@ -631,7 +626,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: setstatusstring_route uri: http://example.org filters: @@ -697,7 +691,6 @@ KeyResolver userKeyResolver() { cloud: gateway: routes: - # ===================================== - id: setstatus_route uri: http://example.org filters: