Refine documentation on body rewrite filters for the case of missing body
Null will be passed. Mono.empty() should be returned to assign an empty body. Fixes gh-2000
This commit is contained in:
committed by
spencergibb
parent
9a5ed3522b
commit
8d6973c876
@@ -1711,6 +1711,9 @@ static class Hello {
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
NOTE: if the request has no body, the `RewriteFilter` will be passed `null`. `Mono.empty()` should be returned to assign a missing body in the request.
|
||||
|
||||
====
|
||||
|
||||
=== Modify a Response Body `GatewayFilter` Factory
|
||||
@@ -1734,6 +1737,8 @@ public RouteLocator routes(RouteLocatorBuilder builder) {
|
||||
.build();
|
||||
}
|
||||
----
|
||||
|
||||
NOTE: if the response has no body, the `RewriteFilter` will be passed `null`. `Mono.empty()` should be returned to assign a missing body in the response.
|
||||
====
|
||||
|
||||
=== Default Filters
|
||||
|
||||
Reference in New Issue
Block a user