optional
| 69 | |
| 70 | // optional |
| 71 | static void CallAfterRpc(brpc::Controller* cntl, |
| 72 | const google::protobuf::Message* req, |
| 73 | const google::protobuf::Message* res) { |
| 74 | // at this time res is already sent to client, but cntl/req/res is not destructed |
| 75 | std::string req_str; |
| 76 | std::string res_str; |
| 77 | json2pb::ProtoMessageToJson(*req, &req_str, NULL); |
| 78 | json2pb::ProtoMessageToJson(*res, &res_str, NULL); |
| 79 | LOG(INFO) << "req:" << req_str |
| 80 | << " res:" << res_str; |
| 81 | } |
| 82 | }; |
| 83 | |
| 84 | // Service with dynamic path. |
nothing calls this directly
no test coverage detected