Topic Path: Symbol Reference > Classes > TIdHTTPResponse Class > TIdHTTPResponse Properties > ContentStream Property
TIdHTTPResponse.ContentStream Property

Contains the streamed content for the HTTP response.

property ContentStream: TIdStream;

ContentStream is a TStream property that represents the stream used when TIdHTTP is used to read the content in an HTTP response for a Get or Post request. 

ContentStream is assigned during opening of the connection to the HTTP host. 

ContentStream is used during HTTP response processing, and is used with the IOHandler in the HTTP client to read streamed values from the HTTP server. When assigned, the size of ContentStream should match the ContentLength for the response. Otherwise, response content is read until the connection is closed. 

ContentStream may also be used to retrieve "chunked" response content when the transfer encoding for the response indicates that "chunked" retrieval is supported.

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