Find the perfect coding resourcesLearn more

Learn the HTTP Protocol in Go

Boot.devBoot.dev
Recommended
Meet Your Instructor
ThePrimeagen avatar

ThePrimeagen

Instructor

ThePrimeagen is a popular software engineer, content creator, and educator known for his expertise in Vim, Git, and software development. He creates educational content on YouTube and Twitch, and is passionate about teaching developers efficient coding practices and tools.

16 hours

Completion

Certificate included

Format

Interactive coding

Freemium

What You'll Learn

Build an HTTP server from scratch in Go

Understand TCP streams and data transmission

Parse HTTP requests and construct responses

Implement chunked transfer encoding

Handle binary data and protocol versions

Overview

The web is built on HTTP, and there's no better way to understand how something works than to implement it yourself. In this course, we'll learn the nitty-gritty details of the HTTP/1.1 protocol, and as we do so we'll actually build our own HTTP server from scratch in Golang. By the end, you'll have a deep understanding of how web transport works.

Table of Contents
1
HTTP Streams

Learn how to read and process a stream of bytes as they arrive

2
TCP

Learn how TCP streams data reliably and how it compares to UDP

3
Requests

Learn how HTTP requests work and how data is sent over the web

4
Request Lines

Learn how to parse HTTP request lines from a stream of data

5
HTTP Headers

Learn how HTTP headers are structured, parsed, and handled

6
HTTP Body

Learn how to read and process the body of an HTTP request

7
HTTP Responses

Learn how an HTTP server constructs and sends responses

8
Chunked Encoding

Learn how HTTP chunked transfer encoding streams data in segments

9
Binary Data

Learn how HTTP handles binary data and different protocol versions

Share Your Experience

Sign in to leave a review and help others

No reviews yet. Be the first to review!