Entity header

An entity header is an HTTP header that can be used in an HTTP request or response, and describes the content of the body of themessage. Headers like Content-Length, Content-Language, Content-Encoding are entities headers.

Even if they are neither request, nor response headers, entity headers are often included in such terms.

A few request headers after a GET request:

In the following example, Content-Length is an entity header, while Host and User-Agent are requests headers:

POST /myform.html HTTP/1.1
Host: developer.mozilla.org
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0
Content-Length: 128

Learn more

Technical knowledge

  • List of all HTTP headers