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

Method responseHasKnownLength

Libraries/Http/HttpAsyncClient.cpp:702–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700 return Result::Error(HttpResultCategory, HttpError::ClientBodyStreamMissing);
701 request.setBody(*currentPreset.bodyStream, currentPreset.contentLength);
702 break;
703 case RequestPreset::BodyMode::Multipart:
704 if (currentPreset.multipartWriter == nullptr)
705 return Result::Error(HttpResultCategory, HttpError::MultipartWriterMissing);
706 request.setMultipart(*currentPreset.multipartWriter);
707 break;
708 }
709

Callers

nothing calls this directly

Calls 1

getHeaderMethod · 0.45

Tested by

no test coverage detected