MCPcopy Create free account
hub / github.com/catboost/catboost / RemoveHeader

Method RemoveHeader

library/cpp/http/io/headers.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void THttpHeaders::RemoveHeader(const TStringBuf header) {
83 for (auto h = Headers_.begin(); h != Headers_.end(); ++h) {
84 if (AsciiEqualsIgnoreCase(h->Name(), header)) {
85 Headers_.erase(h);
86 return;
87 }
88 }
89}
90
91void THttpHeaders::AddOrReplaceHeader(const THttpInputHeader& header) {
92 TStringBuf name = header.Name();

Callers

nothing calls this directly

Calls 5

AsciiEqualsIgnoreCaseFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
NameMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected