Skip to content
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