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

Method SetHeader

src/brpc/http_header.cpp:84–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void HttpHeader::SetHeader(const std::string& key,
85 const std::string& value) {
86 GetOrAddHeader(key) = value;
87}
88
89void HttpHeader::RemoveHeader(const char* key) {
90 if (IsContentType(key)) {

Callers 15

streamMethod · 0.80
replay_threadFunction · 0.80
TEST_FFunction · 0.80
EchoMethod · 0.80
MapControllerMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
HeadMethod · 0.80
ListNamesMethod · 0.80
TESTFunction · 0.80
SetUpControllerMethod · 0.80
SerializeHttpRequestFunction · 0.80

Calls

no outgoing calls

Tested by 9

TEST_FFunction · 0.64
EchoMethod · 0.64
MapControllerMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
HeadMethod · 0.64
ListNamesMethod · 0.64
TESTFunction · 0.64
SetUpControllerMethod · 0.64