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

Method THttpInputHeader

library/cpp/http/io/headers.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15THttpInputHeader::THttpInputHeader(const TStringBuf header) {
16 size_t pos = header.find(':');
17
18 if (pos == TString::npos) {
19 ythrow THttpParseException() << "can not parse http header(" << TString{header}.Quote() << ")";
20 }
21
22 Name_ = TString(header.cbegin(), header.cbegin() + pos);
23 Value_ = ::ToString(Trim(header.cbegin() + pos + 1, header.cend()));
24}
25
26THttpInputHeader::THttpInputHeader(TString name, TString value)
27 : Name_(std::move(name))

Callers

nothing calls this directly

Calls 6

TrimFunction · 0.70
ToStringFunction · 0.50
moveFunction · 0.50
findMethod · 0.45
cbeginMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected