| 377 | Result responseStart = beginResponseRead(); |
| 378 | if (not responseStart) |
| 379 | { |
| 380 | fail(responseStart); |
| 381 | return; |
| 382 | } |
| 383 | Result sendResult = beginRequestSend(); |
| 384 | if (not sendResult) |
| 385 | { |
| 386 | fail(sendResult); |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | Result HttpAsyncClient::beginResponseRead() |
| 391 | { |
| 392 | const bool addedResponseData = connection->getReadableTransportStream() |
| 393 | .eventData.addListener<HttpAsyncClient, &HttpAsyncClient::onResponseData>(*this); |
| 394 | SC_TRY_MSG(addedResponseData, "HttpAsyncClient failed to register response listener"); |
| 395 | if (connection->getReadableTransportStream().canStart()) |
| 396 | { |
| 397 | SC_TRY(connection->getReadableTransportStream().start()); |
nothing calls this directly
no test coverage detected