Replies: 1 comment
-
Have you had a look at the upgrading guide? https://hyper.rs/guides/1/upgrading/ If something in there is unclear, we can try to make it better. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently trying to upgrade from hyper 0.14x to v1 and encountered some errors I wasn't able to resolve on my own.
First I use the legacy client and am wondering what the return type is i should be using (is it BoxBody or does it depend on what I need?)
Then when I want to create a request e.g:
I get the error expected
Request<BoxBody<Bytes, Error>>
, foundRequest<Body>
which I can understand, but the Body type is not longer available in hyper v1. Axum has its own body type but I don't think I can use this here.Another thing im still trying to figure out, is how I can get from
Response<Incoming>
a byte representation like before:let bytes = hyper::body::to_bytes(resp.into_body()).await?
I could not find anything ragarding this problem.
Beta Was this translation helpful? Give feedback.
All reactions