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

Indicates if the client connection should be maintained during request/ response protocol exchanges.

property KeepAlive: Boolean;

KeepAlive is a Boolean property that indicates if the HTTP response supports and uses the HTTP Keep-Alive header for connection control. Reading the value in KeepAlive causes the value in ResponseText to be examined for a valid HTTP protocol version. 

For HTTP 1.1 clients, the value in KeepAlive will contain True if the HTTP client connection is still intact, and Connetion and ProxyConnection header values do not contain the 'CLOSE' directive. 

For HTTP 1.0 clients, the value in KeepAlive will contain False unless the HTTP Keep-Alive header is used for the HTTP Connection or ProxyConnection.

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