HTTP: The Intro
Photo by Ian Battaglia on Unsplash
When we learn Web development, we cannot overlook how the communication occurs between the client and the server. This is what I am going to tell you now.
HyperText Transfer Protocol
This protocol allows us to fetc...
bearcub3.hashnode.dev2 min read
Hi
Nice short introduction, thanks for sharing this 🙏. If you don’t mind, there’s one important detail though: it’s the part about HTTP being a stateless protocol.
It used to be very true, with a new TCP connection established for each request (HTTP 1.0) But that was very inefficient, so HTTP 1.1 changed that to keep and re-use the TCP connection by default. But the HTTP semantics were still stateless (the underlying stack kept a state for performance reasons, but this was not visible to HTTP requests contents)
And now with HTTP 2 (no already used everywhere), this connection and state start to become more visible (i.e. server push with multiple responses is possible because the client and server remain connected after the initial response). Long story short, it was purely stateless, but it became more subtle than that ;)
It’s much better explained in the great A Brief History of HTTP (I could not explain these parts better than they do).
And for many (too much?) technical details, Ilya Grigorik’s Introduction to HTTP/2 is a gold mine. You’ll find there this note:
Thanks again for the introduction.