The HTTP interfaces in Node.Js are designed to support many features of the protocol which have been traditionally difficult to use. In particular, large, possibly chunk-encoded, messages. The interface is careful to never buffer entire requests or responses, so the user is able to stream data.
Node.Js has a built-in module called HTTP, which allows Node.js to transfer data over the Hyper Text Transfer Protocol (HTTP).The HTTP module can create an HTTP server that listens to server ports and gives a response back to the client. Use the
createServer() method to create an HTTP server. To include this module, use the require() method.
Subscribe & Follow us for latest in field of AI & Tech and stay updated!