We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDN says of request.body
request.body
A simple getter used to expose a ReadableStream of the body contents.
In particular, I would expect const { value, done } = await request.body.getReader().read() to work.
const { value, done } = await request.body.getReader().read()
See ReadableStream for more info.
The text was updated successfully, but these errors were encountered:
@jamesarosen have you found any alternative solution? :)
Sorry, something went wrong.
Since Request implements Body, try the Body API, e.g. await request.text().
Request
Body
await request.text()
hi @jamesarosen thanks for the reply :) Unfortunately my production code needs a readable stream :(
No branches or pull requests
MDN says of
request.body
In particular, I would expect
const { value, done } = await request.body.getReader().read()
to work.See ReadableStream for more info.
The text was updated successfully, but these errors were encountered: