-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Upgraded::downcast_ref
is unusable with hyper_util::server::conn::auto
#3704
Comments
|
Of course, another solution would be to just move |
I want a solution to the problem, definitely.
I'm not sure exactly how to allow it, though. I kind of find myself wishing for |
Tbh "I have a buffer of bytes I read and I need to do something like
Given that |
hyper_util::server::conn::auto::Connection<'a, I, S, E>
internally wrapsI
inhyper_util::common::rewind::Rewind<_>
, which is a private type, so we cannot ever make use ofUpgraded::downcast_ref
anymore.While I could expose
Rewind<_>
inhyper_util
and improve docs inhyper_util::server::conn::auto
to signal that one should be downcasting toRewind<I>
, I am filing this inhyper
because I thought of a potentially better resolution:hyper::server::conn::http1::Builder::serve_buffered_connection
:hyper_util::server::conn::auto::Builder::serve_connection
instead of wrappingI
intoRewind<_>
.The text was updated successfully, but these errors were encountered: