Writing a web server from scratch: 1. HTTP and sockets

from blog Notes on software development, | ↗ original
Say we have some HTML: html> body> h1>Hello world!h1> body> html> And say we'd like to be able to render this page in a web browser. If the server is hosted locally we may want to enter localhost:9000/hello-world.html in the address bar, hit enter, make a request (done by the browser), receive a response (sent by some server), and render...