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

Method SetUpController

test/brpc_builtin_service_unittest.cpp:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void SetUpController(brpc::Controller* cntl, bool use_html) const {
175 cntl->_server = &_server;
176 if (use_html) {
177 cntl->http_request().SetHeader(
178 brpc::USER_AGENT_STR, "just keep user agent non-empty");
179 }
180 }
181
182 void TestIndex(bool use_html) {
183 std::string expect_type = (use_html ? "text/html" : "text/plain");

Callers

nothing calls this directly

Calls 1

SetHeaderMethod · 0.80

Tested by

no test coverage detected