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

Function MakeEncodedRequest

library/cpp/http/push_parser/http_parser_ut.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 }
14
15 TString MakeEncodedRequest(const TString& encoding, const TString& data) {
16 TStringStream msg;
17 msg << "POST / HTTP/1.1\r\n"
18 "Content-Encoding: "
19 << encoding << " \r\n"
20 "Content-Length: "
21 << data.size() << "\r\n\r\n"
22 << data;
23 return msg.Str();
24 }
25
26 TString MakeEncodedResponse(const TString& encoding, const TString& data) {
27 TStringStream msg;

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 2

sizeMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected