A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

HTTP Headers

About

HTTP headers let the client and the server pass additional information with a message in a request or response1. The HTTP headers for a server’s response, and about the server that sent it2. This information can assist the client with displaying the response to a user, with storing (or caching) the response for future use, and with making further requests to the server now in the future. They communicate core information, such as what browser the client is using and what data is being requested. They contain text information stored in key-value pairs, and are included in every HTTP request and response.

http-headers-example.png
Example HTTP headers © 2025 Coding for SEO

Headers differences between HTTP/1.X and HTTP/2 and above

In HTTP/1.X, a headers is a case-insensitive name followed by a colon, then optional whitespace which will be ignored, and finally by its value (for example: Allow: POST). In HTTP/2 and above, headers are displayed in lowercase when viewed in developer tools (:accept: */*), and prefixed with a colon for a special group of pseudo-headers (status: 200). For more information, see HTTP messages.

Headers groupings

Headers are grouped according to their contexts:

Headers types

Anki

References


  1. MDN. “HTTP headers”. Available at: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers. (Accessed: [2025-05-07 Wed 15:11]). ↩︎

  2. IBM. “HTTP response”. Available at: https://www.ibm.com/docs/en/cics-ts/6.x?topic=protocol-http-responses. (Accessed: [2025-05-07 Wed 22:00]). ↩︎

Related Posts