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

Method HeaderInOrEmpty

library/cpp/http/misc/httpreqdata.cpp:62–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TStringBuf TBaseServerRequestData::HeaderInOrEmpty(TStringBuf key) const {
63 const auto* ptr = HeaderIn(key);
64 return ptr ? TStringBuf{*ptr} : TStringBuf{};
65}
66
67TString TBaseServerRequestData::HeaderByIndex(size_t n) const noexcept {
68 if (n >= HeadersIn_.size()) {

Callers 1

Y_UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected