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

Method THttpHeaders

library/cpp/http/io/headers.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45THttpHeaders::THttpHeaders(IInputStream* stream) {
46 TString header;
47 TString line;
48
49 bool rdOk = stream->ReadLine(header);
50 while (rdOk && !header.empty()) {
51 rdOk = stream->ReadLine(line);
52
53 if (rdOk && ((line[0] == ' ') || (line[0] == '\t'))) {
54 header += line;
55 } else {
56 AddHeader(THttpInputHeader(header));
57 header = line;
58 }
59 }
60}
61
62THttpHeaders::THttpHeaders(TArrayRef<const THttpInputHeader> headers) {
63 for (const auto& header : headers) {

Callers

nothing calls this directly

Calls 3

THttpInputHeaderClass · 0.85
ReadLineMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected