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

Method initBodyStream

Libraries/Http/HttpConnection.cpp:446–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 SC_HTTP_ASSERT_RELEASE(readableStream != nullptr);
445 return *readableStream;
446}
447
448Result HttpIncomingMessage::consumeBodyBytes(size_t bytes)
449{
450 if (bodyFramingKind != HttpBodyFramingKind::ContentLength)
451 {
452 return Result(true);
453 }
454 if (bytes > bodyBytesRemaining)
455 return Result::Error(HttpResultCategory, HttpError::BodyExceedsContentLength);

Callers 2

prepareRequestMethod · 0.80
onResponseDataMethod · 0.80

Calls 3

attachReadableStreamFunction · 0.85
destroyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected