Miscellaneous · Request & Response
Connection
Controls whether the network connection stays open after the current transaction.
What is Connection?
Historically toggled keep-alive vs close. Also used in tandem with Upgrade for protocol switches (`Connection: Upgrade`). HTTP/2 removed hop-by-hop headers and made Connection irrelevant there.
Typical usage
Rarely set manually. Automatic in HTTP/1.1 keep-alive.
Examples
Connection: keep-aliveConnection: UpgradeSpecification
RFC 9110 §7.6.1