MCPcopy Create free account
hub / github.com/apache/brpc / CallAfterRpc

Method CallAfterRpc

example/echo_c++/server.cpp:87–97  ·  view source on GitHub ↗

optional

Source from the content-addressed store, hash-verified

85
86 // optional
87 static void CallAfterRpc(brpc::Controller* cntl,
88 const google::protobuf::Message* req,
89 const google::protobuf::Message* res) {
90 // at this time res is already sent to client, but cntl/req/res is not destructed
91 std::string req_str;
92 std::string res_str;
93 json2pb::ProtoMessageToJson(*req, &req_str, NULL);
94 json2pb::ProtoMessageToJson(*res, &res_str, NULL);
95 LOG(INFO) << "req:" << req_str
96 << " res:" << res_str;
97 }
98};
99} // namespace example
100

Callers

nothing calls this directly

Calls 1

ProtoMessageToJsonFunction · 0.50

Tested by

no test coverage detected