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为

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为

请问可否自己设置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]