Skip to content

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
@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