Skip to content

0.7.5 can't get headerMap and body in one handler? #2797

Answered by jplatte
biluohc asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, Vec<u8> does not implement FromRequest. To extract the raw bytes of the HTTP body, use the Bytes type.

You can refer to Debugging handler type errors to get more insights into fixing issues like this yourself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@biluohc
Comment options

Answer selected by biluohc
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 #2795 on June 21, 2024 09:35.