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

Method ProcessRecv

library/cpp/neh/https.cpp:1291–1307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1289 }
1290
1291 TErrorRef ProcessRecv(TSslClientIOStream& io, TString* data, THttpHeaders* headers, TString* firstLine) {
1292 io.WaitUntilWritten();
1293
1294 Hndl_->SetSendComplete();
1295
1296 THttpInput in(&io);
1297 *data = ReadAll(in);
1298 *firstLine = in.FirstLine();
1299 *headers = in.Headers();
1300
1301 i32 code = ParseHttpRetCode(in.FirstLine());
1302 if (code < 200 || code > (!THttpsOptions::RedirectionNotError ? 299 : 399)) {
1303 return new TError(TStringBuilder() << TStringBuf("request failed(") << in.FirstLine() << ')', TError::TType::ProtocolSpecific, code);
1304 }
1305
1306 return nullptr;
1307 }
1308
1309 const NHttp::TRequestData& RequestData() {
1310 if (!Req_) {

Callers

nothing calls this directly

Calls 5

ReadAllFunction · 0.85
ParseHttpRetCodeFunction · 0.85
SetSendCompleteMethod · 0.80
TStringBuilderClass · 0.50
WaitUntilWrittenMethod · 0.45

Tested by

no test coverage detected