[http.IncomingMessage] req.toWeb()
#42529
Labels
feature request
Issues that request new features to be added to Node.js.
http
Issues or PRs related to the http subsystem.
What is the problem this feature will solve?
Reading the body out of the
http.IncomingMessageis troublesome without any 3th party package...Requeston the other hand has features such as blob, arrayBuffer, formData and body for parsing.What is the feature you are proposing to solve the problem?
It would be a convenient to have something like a🚀
req.toWeb()utility added onto the simple http serversomething like the stream.Readable.toWeb() but for the http.IncomingRequest to web Request
What alternatives have you considered?
currently doing some simplier variant like this one:
having this
req.toWeb()built in would be very handyThe text was updated successfully, but these errors were encountered: