Merge branch '3.0.x'
This commit is contained in:
@@ -1501,6 +1501,39 @@ Instead, it should throw an `Exception` or signal an error (for example, through
|
||||
|
||||
WARNING: When using the retry filter with any HTTP method with a body, the body will be cached and the gateway will become memory constrained. The body is cached in a request attribute defined by `ServerWebExchangeUtils.CACHED_REQUEST_BODY_ATTR`. The type of the object is a `org.springframework.core.io.buffer.DataBuffer`.
|
||||
|
||||
A simplified "shortcut" notation can be added with a single `status` and `method`.
|
||||
|
||||
The following two examples are equivalent:
|
||||
|
||||
.application.yml
|
||||
====
|
||||
[source,yaml]
|
||||
----
|
||||
spring:
|
||||
cloud:
|
||||
gateway:
|
||||
routes:
|
||||
- id: retry_route
|
||||
uri: https://example.org
|
||||
filters:
|
||||
- name: Retry
|
||||
args:
|
||||
retries: 3
|
||||
statuses: INTERNAL_SERVER_ERROR
|
||||
methods: GET
|
||||
backoff:
|
||||
firstBackoff: 10ms
|
||||
maxBackoff: 50ms
|
||||
factor: 2
|
||||
basedOnPreviousValue: false
|
||||
|
||||
- id: retryshortcut_route
|
||||
uri: https://example.org
|
||||
filters:
|
||||
- Retry=3,INTERNAL_SERVER_ERROR,GET,10ms,50ms,2,false
|
||||
----
|
||||
====
|
||||
|
||||
=== The `RequestSize` `GatewayFilter` Factory
|
||||
|
||||
When the request size is greater than the permissible limit, the `RequestSize` `GatewayFilter` factory can restrict a request from reaching the downstream service.
|
||||
|
||||
Reference in New Issue
Block a user