CONNECT can be configured to add Keep-Alive headers to all outgoing requests or on a single request as indicated by assertion block in entity message.
CONNECT provides two methods for adding Keep-Alive and/or custom headers:
- In gateway.properties
- Within the assertion block of the entity request
Custom header hierarchy
When Keep-Alive has been enabled/disabled in both the assertion block and in gateway.properties, the setting in the assertion block will override the setting in gateway.properties. Likewise, if custom headers with the same names are set in both places, the value set in the assertion block will override the value set in gateway.properties
For more information, see Keep-Alive and Custom HTTP Headers.