Question: / / Within http . createServer ( ) let reqBody = ;req.on ( data , ( data ) = > {
Within httpcreateServerlet reqBody ;req.ondatadata reqBody data;;req.onendif reqBody req.body JSON.parsereqBody;How does the above code for handling JSON requests in an HTTP Server translate to Express?express.useappjson;app.useexpressjson;express.jsonappuse;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
