Skip to content
← All HTTP Headers
Response

Connection

Controls whether the network connection stays open after the current transaction finishes.

Syntax

Connection: keep-alive | close

Example

Connection: keep-alive

Description

Connection controls whether the connection stays open. HTTP/1.1 defaults to keep-alive for persistent connections.

Connection: close tells the client the server will close the connection after the response.

Not used in HTTP/2 and HTTP/3 — connection management is handled by the protocol.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers

Related guides

Longer-form reading on this topic from the knowledge base.

Automate this check

Set up continuous monitoring and get an alert when something breaks. No manual runs to remember.