Index

Module 03 · From ScratchHTTP Server

Build Your Own HTTP Server - From Scratch

The Map
The Map · Open board

The whole build laid out in order: each stage is the wall the one before it hit.

Before you start. This series builds a small copy of an HTTP server: a program that answers when a browser (or curl, or another program) asks it for something, by reading a short text question off the network and writing a short text answer back. You don’t need to know any of that text shape yet - only that two programs can send each other bytes over a wire, the way a phone call carries a voice both ways.

Boards

Code: teaching/code/from-scratch/http/ - one Go module, each stage a real server: go run ./01-socket … go run ./07-chunked, then curl -i localhost:8080 or open it in a browser. No net/http - that’s the whole point.


Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Review From Scratch →

Saved in this browser, and to your account when you sign in.