

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to 'Learn the HTTP Protocol'
incomplete
2: TheStartup™
incomplete
3: 8 Bytes
incomplete
4: Newlines
incomplete
5: Channel Refactor
incomplete
This lesson's interactive features are locked, please to keep using them
Or, as I like to call it, HTTP from TCP.
In this course, we'll build our own HTTP 1.1 server from scratch in Go.
If you try to complete this course without WSL 2 installed on Windows, you're gonna have a bad time.
Understanding of the Go programming language. If you're fuzzy on that, have we got a course for you.
What binary is, which is covered in our Learn Python for Beginners course.
Understanding of how to use HTTP, because in this course we want to build it. We have an HTTP Clients course and an HTTP Servers course that can help with that.
Understand the big ideas of HTTP, and implement the HTTP/1.1 protocol. (Look, the RFC is long, but the main points are fairly straightforward). You'll understand from a high level what happens when you fetch("google.com").
To feel like a wizard, building the protocol of the internet from scratch.
To gain more challenging programming practice, and a deeper understanding of how web applications work.
To have a good time.
I still remember sitting in class, fall of 2007, as I watched my first data structure coded in Java. The magic I felt seeing a class reference itself...
class Node<T> {
public Node prev;
public Node next;
public T data;
...
}In that moment, I knew I was a computer scientist through and through. This feeling reached a pinnacle when I had to create a video transfer protocol for a government robot.
Packet ordering? Nope.
Reliable transport? Ackshually yes. (pikachu shocked face)
Corrupt Data? Regularly.
But did I create it? You're darn tootin'.
I felt empowered. And the best part? It was all in C.
Were there security issues? Yep. Memory leaks? Probably. I wouldn't know. Did it successfully transfer video while the other teams struggled to get basic hardware components to even work? Yes. I felt like a wizard. And I want you to feel like a wizard too.
Welcome to TCP to HTTP.
Throughout this course, you'll be using the Boot.dev CLI to run our tests (which are just CLI commands) against your local environment. Install it now if you don't already have it. All the instructions and troubleshooting info are on the GitHub page.
Make sure the Boot.dev CLI install worked:
bootdev --versionOnce the bootdev command is working, log in and follow the instructions:
bootdev loginOnce you have the CLI installed and you're logged in, copy and paste the run command from the right into your terminal and execute it. If it's doing what you'd expect (printing bootdev cli is ready!), then use the submit command.