From 08551ea482a5c4829312d5f0d9fbf12b08de711c Mon Sep 17 00:00:00 2001
From: buildmaster
For a request path of /foo/bar, this will set the path to /bar before making the downstream request. Notice the $\ which is replaced with $ because of the YAML spec.
For a request path of /foo/bar, this will set the path to /bar before making the downstream request. Notice the $ Should be replaced with $\ because of the YAML spec.
forward: prefixed URL, the targe
gateway:
routes:
- id: request_size_route
- uri: http://localhost:8080/upload
- predicates:
- - Path=/upload
- filters:
- - name: RequestSize
- args:
- maxSize: 5000000
+ uri: http://localhost:8080/upload
+ predicates:
+ - Path=/upload
+ filters:
+ - name: RequestSize
+ args:
+ maxSize: 5000000
For a request path of /foo/bar, this will set the path to /bar before making the downstream request. Notice the $\ which is replaced with $ because of the YAML spec.
For a request path of /foo/bar, this will set the path to /bar before making the downstream request. Notice the $ Should be replaced with $\ because of the YAML spec.
forward: prefixed URL, the targe
gateway:
routes:
- id: request_size_route
- uri: http://localhost:8080/upload
- predicates:
- - Path=/upload
- filters:
- - name: RequestSize
- args:
- maxSize: 5000000
+ uri: http://localhost:8080/upload
+ predicates:
+ - Path=/upload
+ filters:
+ - name: RequestSize
+ args:
+ maxSize: 5000000