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

feat: impl Connection for TokioIo #117

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

kvinwang
Copy link
Contributor

Without this implementation, when a downstream crate wants to implement a custom HttpConnector, it would have to wrap up an extra layer over TokioIo<TcpStream>. Consequently, this would result in a forwarding implementation of hyper::rt::{Read, Write} for the new type.

See here for more detail.

src/rt/tokio.rs Outdated Show resolved Hide resolved
@tottoto
Copy link
Contributor

tottoto commented Apr 12, 2024

Should some document about this be needed.

@tottoto
Copy link
Contributor

tottoto commented Apr 12, 2024

Thanks! Sounds reasonable to me. I left some comments.

@tottoto tottoto merged commit 7bae87f into hyperium:master Apr 14, 2024
16 checks passed
@tottoto
Copy link
Contributor

tottoto commented Apr 14, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants