Hour 5. HTTP

What You’ll Learn in This Hour:

• Understanding HTTP

• Creating HTTP servers with Node.js

• Creating HTTP clients with Node.js

What Is HTTP?

Hypertext Transfer Protocol (HTTP) is long-standing protocol for communicating on the Internet. Essentially, it defines how a server and client should send and receive data while communicating. You use HTTP every day when your web browser loads up web pages where your browser is the client connecting to the server of the website you are browsing.

Node.js allows you to create both servers and clients using a low-level application programming interface (API) with the HTTP module.

In this hour, you explore how this module works and how to write HTTP servers and clients with Node.js.

HTTP Servers ...

Get Sams Teach Yourself Node.js in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.