Get the latest tech news
Writing an HTTP Server in Go from Scratch: Part 2
Follow along while I improve the HTTPServer I wrote from scratch in Go.
I’m pretty sure the correct implementation would be to start parsing the data until I find the content-length to know exactly how much more I should read, but that’s good enough for now! As you can see, I did not write enough unit tests for all the old and new features which is a shame and something I should improve on, especially for this kind of learning project. Although I don’t think I’ll write a part 3, I have two other learning projects built on top of a Codecrafters course that could deserve their own post, the grep and the shell, you can expect to see a writeup on one of those in the next few months.
Or read this on Hacker News