Add APIs to allow switching an HTTP1 connection to HTTP2 if H2 preface is seen by pborzenkov · Pull Request #3996 · hyperium/hyper

added 2 commits

December 16, 2025 13:41
The method returns true if the underlying error is a parse error caused
by HTTP2 preface sent over an HTTP1 connection.
This allows the connection to be deconstructed into I/O object and
some additional information, provided it hasn't yet been upgraded.