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

Method MakeGetRequestMessage

test/brpc_http_rpc_protocol_unittest.cpp:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 2

set_pathMethod · 0.80
set_methodMethod · 0.45

Tested by

no test coverage detected