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

Method RemoveHeader

src/brpc/http_header.cpp:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void HttpHeader::RemoveHeader(const char* key) {
90 if (IsContentType(key)) {
91 _content_type.clear();
92 } else {
93 _headers.erase(key);
94 if (IsSetCookie(key)) {
95 _first_set_cookie = NULL;
96 }
97 }
98}
99
100void HttpHeader::AppendHeader(const std::string& key,
101 const butil::StringPiece& value) {

Callers 7

default_methodMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
~HttpResponseSenderMethod · 0.45
on_headers_completeMethod · 0.45
MakeRawHttpRequestFunction · 0.45
MakeRawHttpResponseFunction · 0.45

Calls 2

clearMethod · 0.45
eraseMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TESTFunction · 0.36