hyper_util::client::legacy::Client request method with Request<Full<Bytes>> #3555
-
|
I have a rustls hyper client defined like this: When I try to execute a request of type I did not understand how to fix this. I cannot directly instantiate the Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
It's hard to know from just that message. It looks like whatever is being used at L353 expects a different body type than what Is |
Beta Was this translation helpful? Give feedback.
-
|
Yes. It's Request<Incoming>.
I will try the BoxBody and let you know.
Thanks a lot for now.
|
Beta Was this translation helpful? Give feedback.
-
|
I decided to create 2 clients. |
Beta Was this translation helpful? Give feedback.
It's hard to know from just that message. It looks like whatever is being used at L353 expects a different body type than what
auth_requestis.Is
auth_requestcoming from a hyper server? Is itRequest<Incoming>? If so, you'd need to make the body types the same somehow. Either by collecting the whole body into a single full buffer, or changing your client body type to a dynamic one, likeBoxBody.