withoutaname opened a new issue #1207:
URL: https://github.com/apache/incubator-brpc/issues/1207


   brpc::Controller* cntl = static_cast<brpc::Controller*>(rpcCntl);
   cntl->http_response().set_content_type("application/grpc");
   cntl->http_response().set_status_code(200);
   cntl->http_response().SetHeader("GRPC-STATUS", "6");
   cntl->http_response().SetHeader("GRPC-MESSAGE", "Already exists");
   response为
   
![image](https://user-images.githubusercontent.com/30468280/90233639-08d33c80-de51-11ea-89b2-ae155efbc3e2.png)
   
   brpc::Controller* cntl = static_cast<brpc::Controller*>(rpcCntl);
   cntl->SetFailed(6, "Already exists");
   cntl->http_response().set_content_type("application/grpc");
   cntl->http_response().set_status_code(200);
   cntl->http_response().SetHeader("GRPC-STATUS", "6");
   cntl->http_response().SetHeader("GRPC-MESSAGE", "Already exists");
   response为
   
![image](https://user-images.githubusercontent.com/30468280/90233819-489a2400-de51-11ea-8b8f-acd53726771a.png)
   
   请问可否自己设置grpc-status和grpc-message,该如何设置?
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to