标签: reactive-programming spring-cloud-gateway
我正在尝试从Spring Cloud Gateway中的ServerWebExchange读取请求正文数据。谁能帮我怎么做。
这也是为什么在响应式编程中如此简单的任务如此困难的原因。
答案 0 :(得分:0)
与读取或修改响应正文相同。 参见:ModifyRequestBodyGatewayFilterFactory和ModifyResponseBodyGatewayFilterFactory
ModifyRequestBodyGatewayFilterFactory
ModifyResponseBodyGatewayFilterFactory
How to get response body in Spring Gateway