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

Method onResponseBodyStreamRead

Libraries/Http/HttpAsyncClient.cpp:487–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 SC_TRY_MSG(&request.getBodyTransform()->AsyncWritableStream::getBuffersPool() == &connection->buffersPool,
486 "HttpAsyncClient body transform writable side must use the client buffers pool");
487 }
488 }
489 if (request.getBodyType() == HttpAsyncClientRequest::BodyType::Multipart)
490 {
491 SC_TRY_MSG(request.getMultipartWriter() != nullptr, "HttpAsyncClient multipart writer missing");
492 SC_TRY_MSG(request.getMultipartWriter()->getBoundary().sizeInBytes() > 0,
493 "HttpAsyncClient multipart boundary missing");
494 }
495 return Result(true);
496}
497

Callers

nothing calls this directly

Calls 2

resumeReadingMethod · 0.80
ResultClass · 0.50

Tested by

no test coverage detected