HTTP Headers

Metadata controlling Caching, Authentication, Compression, content negotiation, session state, security policy, and connection behavior flows through HTTP headers, name-value pairs exchanged between clients, servers, and intermediaries during every request-response cycle.

Usage

Headers appear in both requests and responses. Request headers describe client preferences and context. Response headers convey server decisions and instructions. Representation headers describe the selected representation (type, encoding, and language). Framing headers like Transfer-Encoding and Content-Length describe how the message content is delimited.

End-to-end headers travel the full path from client to server (or server to client) and are preserved by intermediaries. Hop-by-hop headers apply only to the connection between adjacent nodes and are not forwarded.

Modern headers use structured fields, a common type system of integers, strings, tokens, lists, dictionaries, and parameters with strict parsing rules.

Header syntax

A header is a field name, a colon, and a field value, with optional whitespace around the value. Field names are case-insensitive, so Content-Type and content-type name the same field, and HTTP/2 and HTTP/3 send every name in lowercase on the wire. Several fields with the same name are allowed when the field's grammar is a comma-separated list, and a recipient may join them into one line in order. Set-Cookie is the exception: each cookie travels in its own field line and the lines are never combined, because a cookie value can itself contain commas. Field values are plain text, and headers listed as structured fields carry a stricter typed grammar on top.

HTTP header categories and names

Authentication

Caching

Client hints

User-Agent client hints

Preference client hints

Conditionals

Connection management

Content negotiation

Controls

Cookies

CORS

Content information

Content digests

Dictionary compression

Fetch metadata

HTTP signatures

Preferences

Priority

Proxies

Range requests

Rate limiting

Redirects

Reporting

Request context

Resumable uploads

Response context

Security

Privacy

DPoP

Speculation

Transfer coding

Tracing

WebSocket

Web push

Web linking

ACME

Deprecated or experimental

Other

AWS

Akamai

Cloudflare

Caching (vendor)

Load balancer and infrastructure

Microsoft / ASP.NET

Next.js / Vercel

Netlify

LiteSpeed

Drupal

Shopify

Wix

GitHub

Facebook

Fastly

Security (vendor)

See also

Last updated: November 3, 2026