optional
| 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 |
nothing calls this directly
no test coverage detected