How to Send HTML Response in Node.js HTTP Module
Thesecondtimeresponse.write()iscalled,Node.jsassumesdatawillbestreamed,andsendsthenewdataseparately.Thatis,theresponseisbuffereduptothefirstchunkofthebody.,Whenthe'clientError'eventoccurs,thereisnorequestorresponseobject,soanyHTTPresponse...。參考影片的文章的如下: