request body
yo. how to read request body if it's node:http server?
rq.body is undefined
rq.read() returns null
interface of streams not working ofcourse
1 Reply
Hello! It seems you're trying to read the request body in a Deno context, but you've mentioned
node:http
which is specific to Node.js. In Deno, if you're working with the standard HTTP server, you would typically use request.body()
to get the body of the request.
Here's a basic example of how you might read the request body in Deno:
In this example, request.body
is a Deno.Reader
from which you can read the incoming data.
Please note that the advice provided here is not based on the Deno documentation and you should double-check the accuracy of this advice. If you're working with a different library or have a more specific use case, please provide additional context so I can try to assist you further.