Read the body of a POST Request
Hey, is it possible to read the body of a POST request in an HTML endpoint?

5 Replies
You should be able to view the body by calling .json() instead of .body()
👍
Assuming your body is json! I think there are other methods too, like for array buffers
Yeah, I was trying to parse it using a TextDecoder and that's where I got the issue
request.arrayBuffer()
should give you something you can feed into TextDecoder
?