Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > setKeepAlive

setKeepAlive

setKeepAlive(flag: Boolean);

The setKeepAlive method of the JadeHTTPConnection class sets the "Proxy-Connection" HTTP header.

Set the value of the flag parameter to true to generate the "Proxy-Connection : Keep-Alive" header; or set the value to false to remove the "Proxy-Connection : Keep-Alive" header if it exists.