Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPResponse.KeepAlive Property

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.