Read the request body from ServerWebExchange Spring cloud gateway

陌路散爱 提交于 2021-01-29 12:45:15

问题


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.


回答1:


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

How to get response body in Spring Gateway



来源:https://stackoverflow.com/questions/64589858/read-the-request-body-from-serverwebexchange-spring-cloud-gateway

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!