Skip to content

Conversation

@pborzenkov
Copy link

This PR adds APIs to allows switching an HTTP1 connection to an HTTP2 connection
by a server that supports both, like hyper_util::server::conn::auto. Notably,
this is required to implement #3962.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant