Help: Don't know how to return Bytes when using Response::bytes() method #1567
-
Hi, this is not an error but i found the Response::bytes() method returns bytes::Bytes which is not exposed by the Reqwest itself, how can i return the Bytes and use it in other module? i can't do something like |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
Jun 26, 2022
Replies: 1 comment 2 replies
-
You can add the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
seanmonstar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can add the
bytes
crate as a dependency of yours, and then you can reference the type.