| 219 | } |
| 220 | |
| 221 | brpc::policy::HttpContext* MakeGetRequestMessage(const std::string& path) { |
| 222 | brpc::policy::HttpContext* msg = new brpc::policy::HttpContext(false); |
| 223 | msg->header().uri().set_path(path); |
| 224 | msg->header().set_method(brpc::HTTP_METHOD_GET); |
| 225 | return msg; |
| 226 | } |
| 227 | |
| 228 | |
| 229 | brpc::policy::HttpContext* MakeResponseMessage(int code) { |
nothing calls this directly
no test coverage detected