1 min read

HTTP Module in NodeJS

The HTTP module creates an HTTP server that listens to server ports and gives a response back to the client. The HTTP interfaces in Node.Js are designed to support many features of the protocol which have been traditionally difficult to use.
HTTP Module in NodeJS

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.

Node.js | HTTP Module - GeeksforGeeks
A computer science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
https://www.geeksforgeeks.org/node-js-http-module/

#JavaScript #NodeJS #HTTP #Probyto #ProbytoAI

Subscribe & Follow us for latest in field of AI & Tech and stay updated!

Facebook: https://facebook.com/probyto
Twitter: https://twitter.com/probyto
LinkedIn: https://linkedin.com/company/probyto
Instagram: https://instagram.com/probyto