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

Function MakeEncodedResponse

library/cpp/http/push_parser/http_parser_ut.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 }
25
26 TString MakeEncodedResponse(const TString& encoding, const TString& data) {
27 TStringStream msg;
28 msg << "HTTP/1.1 200\r\n"
29 "Content-Encoding: "
30 << encoding << " \r\n"
31 "Content-Length: "
32 << data.size() << "\r\n\r\n"
33 << data;
34 return msg.Str();
35 }
36}
37
38Y_UNIT_TEST_SUITE(THttpParser) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected