I Wrote HTTP "From Scratch" (It Was Easy)
45,037
Published 2024-07-03
(It's a multiplayer browser game)
Link to newb-friendly article: developer.mozilla.org/en-US/docs/Web/HTTP/Overview
Link to actual HTTP 1.1 standard: www.rfc-editor.org/rfc/rfc2616
Note: I wrote HTTP 1.1, not 2 or 3 or even TCP/IP itself.
BUT this does include TLS/SSL.
Blocked nose today, sorry.
I'm happy to answer any questions in the comments pertaining to HTTP basics, stuff I missed, corrections, or the project!
All Comments (21)
-
You know it’s going to be a good video when it starts out with: “We’re going to assume the presence of a TCP/IP implementation on your system”
-
I read that as C written in HTTP, and was hoping for next level black magic shit.
-
I spend most of my time with Python, with all the layers of abstraction. This video definitely rekindled my love for C. Thank you.
-
That's a very creative way to use gimp as a presentation tool! hella based video!
-
Ahh very good explanation good sir. I was getting into c socket programming without understanding the underlying fundamentals to implement this protocol. Gained a lot of information from this one.
-
Thank you for this video Sean! it really was eye opening.
-
Great content, also amazing explaination!
-
Great work, man!
-
Wow great learnt a lot keep uploading good stuff.
-
moonfly gang 🔥 great video btw, keep them coming!
-
You are a good developer. 👍
-
This is a great practice project for programmers. Very cool moves.
-
S+ tier content
-
Execllent video! Just what I was looking for. I recommend thinking about a better title in future in order to attract more viewers to your content since this video is a fantastic deep dive, you explained protocols in less than a minute visually.
-
Any thoughts what would be involved in writing an ESP32 application, that takes data from the uart, and passes it wirelessly either bluetooth (SPP) or via Wifi. For Wifi, I imagine the ESP32 could act as a web server (TCP) and display the RS232 data, but maybe there's a UDP way it could send data to a PC on the same network?
-
Is the operating system involved in the TLS protocol or the OpenSSL library will take care of encryption and the decryption of the data and then just use the send and recv functions provided by the OS ?
-
How different is this from the binary HTTP protocol? And can you leverage your code into that easily?
-
just got smarter watching this lol, good video
-
Very interesting! Now, i am wondering as a c# developer is it something i cam replicate? Also do you have it on a repository ? Thank you very much
-
In the worlds of Linus Torvalds - let's write it from scratch; how hard can it be!