You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/12/25 07:09:14 UTC

[GitHub] [dubbo-go] binbin0325 commented on issue #2158: 如何在client过滤器中获取http header

binbin0325 commented on issue #2158:
URL: https://github.com/apache/dubbo-go/issues/2158#issuecomment-1364636719

   在dubbo 的client中肯定没有办法获取header,因为dubbo就没有这个概念。  但是可以在gin中获取header,然后把header的k、v转换成dubbo的attachment。这样就能发送到server端了。  
   
   如何设置attachment可以参考:https://github.com/apache/dubbo-go-samples/blob/master/context/dubbo/go-client/cmd/client.go#L64
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org