From 4b1a9203c547c019fc5398082ae19a3f3d4c3efe Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:15 -0500 Subject: initial commit --- files/de/web/http/headers/connection/index.html | 48 +++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 files/de/web/http/headers/connection/index.html (limited to 'files/de/web/http/headers/connection/index.html') diff --git a/files/de/web/http/headers/connection/index.html b/files/de/web/http/headers/connection/index.html new file mode 100644 index 0000000000..8c4000ac5c --- /dev/null +++ b/files/de/web/http/headers/connection/index.html @@ -0,0 +1,48 @@ +--- +title: Connection +slug: Web/HTTP/Headers/Connection +translation_of: Web/HTTP/Headers/Connection +--- +
{{HTTPSidebar}}
+ +

The Connection general header controls whether or not the network connection stays open after the current transaction finishes. If the value sent is keep-alive, the connection is persistent and not closed, allowing for subsequent requests to the same server to be done.

+ +
+

Connection-specific header fields such as {{HTTPHeader("Connection")}} and {{HTTPHeader("Keep-Alive")}} are prohibited in HTTP/2. Chrome and Firefox ignore them in HTTP/2 responses, but Safari conforms to the HTTP/2 spec requirements and won’t load any response which contains them.

+
+ +

Except for the standard hop-by-hop headers ({{HTTPHeader("Keep-Alive")}}, {{HTTPHeader("Transfer-Encoding")}}, {{HTTPHeader("TE")}}, {{HTTPHeader("Connection")}}, {{HTTPHeader("Trailer")}}, {{HTTPHeader("Upgrade")}}, {{HTTPHeader("Proxy-Authorization")}} and {{HTTPHeader("Proxy-Authenticate")}}), any hop-by-hop headers used by the message must be listed in the Connection header, so that the first proxy knows it has to consume them and not forward them further. Standard hop-by-hop headers can be listed too (it is often the case of {{HTTPHeader("Keep-Alive")}}, but this is not mandatory).

+ + + + + + + + + + + + +
Header type{{Glossary("General header")}}
{{Glossary("Forbidden header name")}}yes
+ +

Syntax

+ +
Connection: keep-alive
+Connection: close
+
+ +

Directives

+ +
+
close
+
Indicates that either the client or the server would like to close the connection. This is the default on HTTP/1.0 requests.
+
any comma-separated list of HTTP headers [Usually keep-alive only]
+
Indicates that the client would like to keep the connection open. Having a persistent connection is the default on HTTP/1.1 requests. The list of headers are the name of the header to be removed by the first non-transparent proxy or cache in-between: these headers define the connection between the emitter and the first entity, not the destination node.
+
+ +

Browser compatibility

+ + + +

{{Compat("http.headers.Connection")}}

-- cgit v1.2.3-54-g00ecf