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

Added .with_upgrades() to connection #38

Merged

Conversation

rakshith-ravi
Copy link
Contributor

In all honesty, I really don't know if it's possible to have this happen in the same function with a ?Send way, but I couldn't get that to work. So I added a new function that requires the IO stream to be Send, which automatically upgrades HTTP/1 connections.

Also, does HTTP/2 not require upgrades? I was looking for a similar .with_upgrades() function in self.http2.serve_connection, and when I couldn't find it, I tried adding it, and realized that there was no upgrades module at all. Is this inherently present in HTTP/2 or is this just something that we haven't implemented yet?

This is required by tokio-rs/axum#2241

@seanmonstar seanmonstar merged commit d97181a into hyperium:master Sep 29, 2023
15 checks passed
@rakshith-ravi
Copy link
Contributor Author

Woohoo!!!! Thanks a lot!

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.

2 participants