MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / beginResponseRead

Method beginResponseRead

Libraries/Http/HttpAsyncClient.cpp:379–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
390Result 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());

Callers

nothing calls this directly

Calls 3

resumeReadingMethod · 0.80
ResultClass · 0.50
startMethod · 0.45

Tested by

no test coverage detected