Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HttpStreamValidators

function HttpStreamValidators(aStream: TStream): tHttpValidators;
Validators read off the OPEN OBJECT behind a THandleStream (which TFileStream and both stFileJail stream classes are) - size and last-write time from the handle, never from a path, so a jail-verified stream keeps its proof. ETag is strong: '"<size>-<mtime>"' in hex, changing whenever either does. A stream that is not a THandleStream (a TMemoryStream, say) yields empty validators, and the callers below then send none and evaluate no precondition.