HTTP is a protocol for transferring web pages, text, media, binary files and much more. It stands for hyper text transfer protocol and It is what the Internet pretty much runs on. In this video we will learn how HTTP works, how it is secured with HTTPS, will also show how to spin up an Http web server, and we will also go through the evolution of HTTP starting from HTTP 1.0 to HTTP 1.1 to HTTP/2 and eventually HTTP/3 which is still experimental. 




 


HTTP anatomy 


Request (browser, web app) 

URL
Method type
Headers
Body

Response (web server) 

Status code
Headers
Body 

HTTP 1.0 over tcp

Application Layer 7
new connection with each request. 

HTTP 1.1 over tcp

Persisted connection 

HTTP/2 over tcp

Compression
Multiplexing
Server Push
SPDY
Mostly secure by default
Negotiates protocol during TLS (NPN/ALPN)

HTTP/2 over QUIC ( HTTP/3) 

Replaces TCP with QUIC (udp with congestion control)