Software Design by Example in Python 22: Serving Web Pages
Having shown learners how to transfer files over TCP, the next step is to explain how an HTTP server works, which is what Chapter 22: Serving Web Pages does. The full story would fill several books, so I focused on the fact that requests and responses are just formatted text and on how to test a web server.
Looking at the material now, I regret that I didn’t devote a chapter to authentication. I had a bruising encounter with certificates last month that left me believing there’s a need for a scale-model tutorial of how they work, but while a bunch of people wanted to read a book on security by example, nobody wanted to help write it. I suppose there’s always the next lifeā¦
Terms defined: body (of HTTP request or response), header (of HTTP request or response), HTTP, HTTP method, HTTP protocol version, HTTP request, HTTP response, HTTP status code, path resolution, query parameter, throw low, catch high, Universal Resource Locator.