Introduction
Most people use HTTP daily, but few understand its inner workings. This “Build Your Own X” book dives deep, teaching basics from scratch for a clearer understanding of the tools and tech we rely on.
- Network programming.
- Protocols & communication.
- HTTP in detail.
Contents
Part I: Make A Basic HTTP Server
- Introduction
- HTTP Overview
- Code A TCP Server
- Promises and Events
- A Simple Network Protocol
- HTTP Semantics and Syntax
- Code A Basic HTTP Server
Part II: Applications & Extensions
- Dynamic Content and Streaming
- File IO & Resource Management
- Range Requests
- HTTP Caching
- Compression & the Stream API
- WebSocket & Concurrency
PDF/EPUB and Paperback Editions
The full book is available for purchase.
Recommended Reading
I have curated a list of resources that are highly relevant and can be used as supplements.
![]() |
High Performance Browser
Networking by Ilya Grigorik. [Amazon] [Web] A book that focuses on creating fast network applications. One cannot understand performance issues without first understanding networking. Although the title says “browser”, this is a general and practical networking book relevant to all kinds of developers. |
![]() |
Eloquent JavaScript by
Marijn Haverbeke. [Amazon] [Web] Not a JS developer, but still want to follow this project and code an HTTP server? Fortunately, JS is one of the easiest languages to pick up. If you know a few other programming languages, you can probably get started in no time. |

