| 444 | SC_HTTP_ASSERT_RELEASE(readableStream != nullptr); |
| 445 | return *readableStream; |
| 446 | } |
| 447 | |
| 448 | Result 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); |
no test coverage detected