Skip to content

Help: Don't know how to return Bytes when using Response::bytes() method #1567

Answered by seanmonstar
oldtune asked this question in Q&A
Discussion options

You must be logged in to vote

You can add the bytes crate as a dependency of yours, and then you can reference the type.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@oldtune
Comment options

@oldtune
Comment options

Answer selected by seanmonstar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1566 on June 26, 2022 16:51.