#How to get body of a POST request
2 messages · Page 1 of 1 (latest)
Here's a quick snippet that should work, although I have not tested this much and I recommend looking at hono if they have a better implementation:
const text = await request.text()
const entries = text.split('&').map(x => x.split('=').map(decodeURIComponent))
const body = Object.fromEntries(entries)