Pages

Saturday, July 4, 2020

HTTP

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

Client / server Client makes HTTP requests to a server that supports HTTP, the server (web server, http server like apache tomcat, nodejs etc..) responds back with the content. This could be an HTML page, images, JSON and much more.

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)















No comments:

Post a Comment