| 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_) { |
nothing calls this directly
no test coverage detected