How can I convert the event body to UTF-8? #611
Unanswered
winstxnhdw
asked this question in
Q&A
Replies: 1 comment
-
Currently I am doing the following as a workaround. Any better suggestions are welcome. async fn handler(event: Request) -> Result<Response<Body>, Error> {
let body = event.body().iter().map(|b| *b as char).collect::<String>();
} |
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
-
Currently, I am doing the following.
But the output of this when printed is surrounded with
"
and filled with\
. I have to use the body to verify a signature according to this documentation, so it needs to be the raw body as a string.Beta Was this translation helpful? Give feedback.
All reactions