liubao68 commented on issue #1403: CseAsyncRestTemplate设置HTTP header未生效
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1403#issuecomment-557349255
 
 
   ServiceComb的设计不同于Spring MVC,Spring MVC技术建立在servlet基础之上,所以可以直接操作HTTP。 
而ServiceComb本质上是基于Open API 的 RPC 
框架,而独立于servlet,可以使用非HTTP协议进行通信。传递的参数可能会忽略掉没有在接口中声明的信息。
   这个场景需要进一步考虑如何支持。 
   传递自定义header,可以考虑实现HttpServerFilter,即在http层处理。 当然如果存在a -> b -> c 
这样的调用链中传递,可以考虑使用ServiceComb的[Context](https://docs.servicecomb.io/java-chassis/zh_CN/general-development/context.html),而不是使用HTTP。
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to