Expand description
HTTP/2 over cleartext: prior-knowledge preface detection and the Upgrade: h2c request
(RFC 9113 §3.3, RFC 7540 §3.2).
Enums§
- Preface
- What the first bytes of a connection are.
Constants§
- PREFACE
- The HTTP/2 connection preface.
- SWITCHING_
PROTOCOLS - The
101reply that accepts an h2c upgrade; HTTP/2 frames follow it.
Functions§
- detect_
preface - Classifies the start of a connection.
- upgrade_
settings - If
reqasks to upgrade to h2c, appends the decodedHTTP2-Settingspayload tosettingsand returns true.