Content-Length

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Der HTTP-Header Content-Length gibt die Größe des Nachrichtentextes in Bytes an, der an den Empfänger gesendet wird.

Header-Typ Anforderungs-Header, Antwort-Header, Inhalts-Header
Verbotener Anforderungs-Header Ja
CORS-sicher gelisteter Antwort-Header Ja

Syntax

http
Content-Length: <length>

Direktiven

<length>

Die Länge in Oktetten.

Spezifikationen

Specification
HTTP Semantics
# field.content-length

Browser-Kompatibilität

BCD tables only load in the browser

Siehe auch