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

Method MapController

test/brpc_channel_unittest.cpp:2549–2553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2547 }
2548
2549 void MapController(int channel_index, int,
2550 const brpc::Controller* main_cntl,
2551 brpc::Controller* sub_cntl) override {
2552 sub_cntl->http_request().SetHeader(ECHO_HTTP_HEADER, std::to_string(channel_index));
2553 }
2554};
2555
2556TEST_F(ChannelTest, http_header_parallel_channels) {

Callers

nothing calls this directly

Calls 1

SetHeaderMethod · 0.80

Tested by

no test coverage detected