Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtHttp3ClientConn.RequestBodyCapacity

function RequestBodyCapacity(aStreamID: UInt64): Integer;
RequestBodyCapacity is the largest chunk TrySendBody would take now, DATA framing excluded, limited by the send queue and any remaining declared Content-Length. 0: the queue is full (Pump, then ask again) or the body is not open; an empty final write can still succeed. TrySendBody queues all of aData, plus FIN when aEndStream is True, and returns True. False: the queue is full and nothing was taken - Pump and retry the same chunk. It raises, taking nothing, when the body is not open, the total would exceed a declared Content-Length (or a final write falls short of it), or the chunk exceeds MaxBufferedSendBytes. An empty non-final write does nothing. aData is kept by reference: do not modify it.