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

Function WriteHostHeaderIfNot

library/cpp/neh/http_headers.h:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48 template <typename Port>
49 void WriteHostHeaderIfNot(IOutputStream& out, TStringBuf host, Port port, TStringBuf headers) {
50 if (!NNeh::NHttp::HasHostHeader(headers)) {
51 NNeh::NHttp::WriteHostHeader(out, host, port);
52 }
53 }
54 }
55}

Callers 1

BuildRequestFunction · 0.85

Calls 2

HasHostHeaderFunction · 0.85
WriteHostHeaderFunction · 0.85

Tested by

no test coverage detected