从 ServerWebExchange Spring 云网关读取请求正文 [英] Read the request body from ServerWebExchange Spring cloud gateway

查看:135
本文介绍了从 ServerWebExchange Spring 云网关读取请求正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 Spring Cloud Gateway 中的 ServerWebExchange 读取请求正文数据.任何人都可以帮助我如何做到这一点.

I am trying to read the request body data from ServerWebExchange in Spring Cloud Gateway. can anyone please help me how to do this.

为什么这个简单的任务在响应式编程中如此困难.

Also why this simple task is so difficult in reactive programming.

推荐答案

与读取或修改响应正文相同.请参阅:ModifyRequestBodyGatewayFilterFactoryModifyResponseBodyGatewayFilterFactory

It's the same as reading or modifying the response body. see: ModifyRequestBodyGatewayFilterFactory and ModifyResponseBodyGatewayFilterFactory

如何在 Spring Gateway 中获取响应正文

这篇关于从 ServerWebExchange Spring 云网关读取请求正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆