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

Function SimulateBodyEncoding

library/cpp/http/io/stream_ut.cpp:360–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358 }
359
360 TString SimulateBodyEncoding(const char* body) {
361 TString bodyStr;
362 TStringOutput bodyOut(bodyStr);
363 TChunkedOutput chunkOut(&bodyOut);
364 TZLibCompress comprOut(&chunkOut, ZLib::GZip);
365 comprOut << body;
366 return bodyStr;
367 }
368
369 Y_UNIT_TEST(TestRebuildStreamOnPost) {
370 const char* body = "<html>Hello</html>";

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected