Internet Direct (Indy) Version 9.0.1 Beta
TIdResponseHeaderInfo.HasContentLength
Indicates when HTTP response headers contain a content length value.

property HasContentLength: Boolean;
Description
HasContentLength is a public read-only Boolean property that indicates when the headers for an HTTP response contains a 'Content-Length' header with a non-zero value.

HasContentLength is updated when header values are loaded into properties for TIdResponseHeaderInfo using ProcessHeaders.

HasContentLength is used by TIdHTTP when reading the HTTP Response, and is used to determine when the stream used for the Response contents can be truncated.