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. In the case of an unsuccessful request , headers can be used to tell
Difference between HTTP/1.X and HTTP/2 and above
In HTTP
/1.X, a header 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
Header groupings
- HTTP request headers
- HTTP response headers
- Representation headers
- Payload headers
- End-to-end headers
- Payload headers
- Hop-by-hop headers
Anki
Links
References
MDN. “HTTP headers”. Available at: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers . (Accessed: ). ↩︎
IBM. “HTTP response”. Available at: https://www.ibm.com/docs/en/cics-ts/6.x?topic=protocol-http-responses . (Accessed: ). ↩︎