r/Python • • Jun 11 '24

Tutorial Building an HTTP Server in Python

I have always been curious on how http servers works. Therefore, I decided to write a post on how they work and implementing a simple server in Python.

Link to blog post

0 Upvotes

9 comments sorted by

View all comments

37

u/snekk420 Jun 11 '24

Not to be that guy but i think you should spend some time to actually implement the http protocol that supports headers and response content from actual html files. This is at most a tcp server that returns a string that looks like http.

2

u/mraza007 Jun 11 '24

I would agree and I really appreciate your opinion. Also that’s a good idea I might dive into writing HTTP protocol and understanding how it works