You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "982945902 (via GitHub)" <gi...@apache.org> on 2023/02/09 03:04:54 UTC

[GitHub] [brpc] 982945902 commented on issue #2113: 使用grpc协议时,如何支持填充metadata信息

982945902 commented on issue #2113:
URL: https://github.com/apache/brpc/issues/2113#issuecomment-1423556546

   > @982945902 请问找到填充 matadata 的办法了吗
   
   client:
   cntl.http_request().SetHeader("test","111")
   
   server:
   brpc::Controller *cntl =
               static_cast<brpc::Controller *>(controller);
   auto ptest = cntl->http_request().GetHeader("test")


-- 
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: dev-unsubscribe@brpc.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org