MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DoraXrtHttpProcessCloseDelimitedBody

Function DoraXrtHttpProcessCloseDelimitedBody

Source/Http/XrtHttpClient.c:644–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642}
643
644static int DoraXrtHttpProcessCloseDelimitedBody(DoraXrtHttpStreamContext* ctx) {
645 if (ctx->pendingLen == 0u) {
646 return 1;
647 }
648 ctx->received += ctx->pendingLen;
649 if (!DoraXrtHttpDeliverChunk(ctx, ctx->pending, ctx->pendingLen, 0u)) {
650 return 0;
651 }
652 DoraXrtHttpStreamConsume(ctx, ctx->pendingLen);
653 return 1;
654}
655
656static int DoraXrtHttpStreamProcess(DoraXrtHttpStreamContext* ctx) {
657 if (!DoraXrtHttpParseHeaders(ctx)) {

Callers 1

DoraXrtHttpStreamProcessFunction · 0.85

Calls 2

DoraXrtHttpDeliverChunkFunction · 0.85
DoraXrtHttpStreamConsumeFunction · 0.85

Tested by

no test coverage detected