Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiHttpUploadExchange.TrySendBody

function TrySendBody(const aData: TBytes; aEndStream: Boolean): Boolean;
Offers the next piece of the body, at most cHttpsUploadChunkBytes; aEndStream True makes it the last. True: the whole piece was accepted. False: nothing was accepted (queue full or client busy) - wait with WaitForBodyCapacity and retry with the same piece. Raises, accepting nothing, when the body is closed, the piece is too large, or it would run past the declared length (cHttpsMaxUploadLength without one) or end the body short of it. An empty piece that is not final is ignored.