Your First HTTP Server

Your first server answers. Rudely, but it answers.

▶ the lesson · ~35s · narrated · tap for sound

the intro

An HTTP server listens on a port and answers requests with responses. You can build one in ten lines of Node, and building it by hand once teaches you what frameworks do for you forever.

fun fact ✦

The C10k problem — ten thousand connections at once — is what made nginx famous.

the docs

quick hits about Your First HTTP Server

15-second answers · interviews, tips, trivia & hidden gems

🎤 interview

What is a port?

🎤 interview

What is middleware?

📚 tutorial

The framework version

💎 deep

The only status codes you need

🔧 useful

Stop restarting your server manually?