The HTTP Connection header is used to control whether an active connection stays in place after a transaction is complete.
The HTTP Connection header dictates whether the network connection remains open after the current transaction. There are two directives:
As of HTTP/2, the HTTP Connection header is no longer valid. Some browser implementations ignore the HTTP header whereas others will reject messages that contain it.
In earlier implementations of HTTP, the HTTP Connection header was used to control what happened to the HTTP connection after the current transaction was complete. As of HTTP/2, it is no longer used.