WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm struggling trying to update my to_hyper_request function from hyper 0.14.27 to 1.6.
First I replaced hyper::Body with hyper::body::Incoming but that does not work with the from at the end of the function. I also read the upgrade guide, did a lot of searching and tried several things but can't get to something that works.
Can you advise me what I should be using here instead of the old hyper::Body?
The Incoming is meant to describe an incoming body that hyper is controlling. If you're constructing a body from a full set of bytes, you probably want to use the http_body_util::Full type.
The Incoming is meant to describe an incoming body that hyper is controlling. If you're constructing a body from a full set of bytes, you probably want to use the http_body_util::Full type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
The
Incomingis meant to describe an incoming body that hyper is controlling. If you're constructing a body from a full set of bytes, you probably want to use thehttp_body_util::Fulltype.