Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to: upgrade server connection from HTTP/1 to h2? #3276

Closed
kkocdko opened this issue Jul 24, 2023 · 1 comment
Closed

Is there a way to: upgrade server connection from HTTP/1 to h2? #3276

kkocdko opened this issue Jul 24, 2023 · 1 comment
Labels
C-feature Category: feature. This is adding a new feature.

Comments

@kkocdko
Copy link

kkocdko commented Jul 24, 2023

In 0.14.x:

hyper/src/server/conn.rs

Lines 133 to 135 in d77c259

/// Use HTTP/1 and try to upgrade to h2 when a parse error occurs.
#[cfg(all(feature = "http1", feature = "http2"))]
Fallback,

But after hyper 1.0 with splited http1 / http2 module, I have not found this function provided. Should this be a part of hyper, or an sample program to do this in /example ?

@kkocdko kkocdko added the C-feature Category: feature. This is adding a new feature. label Jul 24, 2023
@kkocdko
Copy link
Author

kkocdko commented Jul 24, 2023

Dumplicate of #2852

@kkocdko kkocdko closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature. This is adding a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant