Connection preface
01Both peers establish HTTP/2 state before exchanging ordinary requests.
The server sends SETTINGS and peers acknowledge settings.
Key idea: TLS connections negotiate h2 using ALPN.
Rules & examples
TLS connections negotiate h2 using ALPN.
- TLS connections negotiate h2 using ALPN.
- The client preface starts with a fixed 24-octet sequence followed by SETTINGS; the server starts with SETTINGS.
- Settings apply per connection and are acknowledged.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
A request starts a conversation.
A client asks for a resource. A server sends a response. The method, address, headers, and status explain what that conversation means.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
The older priority scheme and HTTP/1.1 Upgrade bootstrap are deprecated; the revision also incorporates TLS 1.3 guidance.
Read the updated RFC section ↗