propertytHttp3ServerConn.BodyCharge
property BodyCharge: tHttp3ChargeMethod read fBodyCharge write fBodyCharge;
Optional memory budget shared with other connections (TsmHTTPSv3 uses it for TotalBodyBytes and TotalResponseBytes). BodyCharge(n) is asked before n request-body bytes are buffered or a streaming buffer is reserved; return False to refuse (the request is aborted with H3_EXCESSIVE_LOAD, or a streaming route answers 503). ResponseCharge is asked the same way for a memory-backed response body, and refusal aborts the request; file and stream sources are not charged. Each accepted charge comes back through the matching Release, possibly in parts, as the memory is freed and at the latest when the request ends or this object is freed. Assign both of a pair, or neither, before Start. The target must outlive this object and be thread-safe if connections on other threads share it.