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

Method FindHeader

library/cpp/http/io/headers.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73const THttpInputHeader* THttpHeaders::FindHeader(const TStringBuf header) const {
74 for (const auto& hdr : Headers_) {
75 if (AsciiEqualsIgnoreCase(hdr.Name(), header)) {
76 return &hdr;
77 }
78 }
79 return nullptr;
80}
81
82void THttpHeaders::RemoveHeader(const TStringBuf header) {
83 for (auto h = Headers_.begin(); h != Headers_.end(); ++h) {

Calls 2

AsciiEqualsIgnoreCaseFunction · 0.85
NameMethod · 0.45

Tested by 1

TestFindHeaderMethod · 0.64