Skip to main content

Module h2c

Module h2c 

Source
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 101 reply that accepts an h2c upgrade; HTTP/2 frames follow it.

Functions§

detect_preface
Classifies the start of a connection.
upgrade_settings
If req asks to upgrade to h2c, appends the decoded HTTP2-Settings payload to settings and returns true.