Topic Path: Symbol Reference > Classes > TIdHTTPResponseInfo Class > TIdHTTPResponseInfo Properties > FreeContentStream Property
TIdHTTPResponseInfo.FreeContentStream Property

Indicates if the object instance can free its ContentStream.

property FreeContentStream: Boolean;

FreeContentStream is a Boolean property that indicates if the object instance can free the TStream resource allocated in ContentStream

FreeContentStream is set to True in the Create constructor, and ensures that ContentStream will be released, if assigned, prior to retrieving an HTTP response in the Destroy method. 

Under normal circumstances, FreeContentStream is not changed during the lifetime of the HTTP response. Set FreeContentStream to False when ContentStream is assigned manually, and the stream must continue to exist even after destruction of the HTTP response.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.