You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/12/30 07:10:06 UTC

[GitHub] [servicecomb-java-chassis] sunjinghan7331 commented on issue #1503: 使用restTemplate调用provider接口时如何设置请求头信息

sunjinghan7331 commented on issue #1503: 使用restTemplate调用provider接口时如何设置请求头信息
URL: https://github.com/apache/servicecomb-java-chassis/issues/1503#issuecomment-569600857
 
 
   > 你可以试试 @afan321 的方法,采用HttpEnetity传递header。 但是需要注意,这个限制了底层通信使用REST(即HTTP). 更通用的方式是采用 [Context](https://docs.servicecomb.io/java-chassis/zh_CN/general-development/context.html), 可以参考 [fence](https://github.com/apache/servicecomb-fence) 认证鉴权的实现.
   
   好的,谢谢

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services