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

Function HasHostHeader

library/cpp/neh/http_headers.h:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 };
36
37 inline bool HasHostHeader(TStringBuf headers) {
38 THeaderSplitter splitter(headers);
39 TStringBuf header;
40 while (splitter.Next(header)) {
41 if (AsciiHasPrefixIgnoreCase(header, "Host:")) {
42 return true;
43 }
44 }
45 return false;
46 }
47
48 template <typename Port>
49 void WriteHostHeaderIfNot(IOutputStream& out, TStringBuf host, Port port, TStringBuf headers) {

Callers 1

WriteHostHeaderIfNotFunction · 0.85

Calls 2

AsciiHasPrefixIgnoreCaseFunction · 0.85
NextMethod · 0.45

Tested by

no test coverage detected