Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HttpTryDechunk

function HttpTryDechunk(const aBuf: tBytes; aStart, aCount: Integer; out aBody: tBytes): Boolean;
HttpTryDechunk decodes a chunked body starting at aStart, returning True only once the terminating zero-length chunk and its trailer section have arrived - so a partial transfer simply leaves the caller waiting for more octets rather than yielding a truncated body.