What it is
HTTP (Hypertext Transfer Protocol) is an application layer protocol for requesting and transferring resources. A client sends a request that includes a method, target, headers, and sometimes a body. A server replies with a status code, headers, and an optional body.
Key points
- Built around methods like GET and POST and responses with status codes.
- Runs over transports like TCP (HTTP/1.1 and HTTP/2) and QUIC (HTTP/3).
- Caching and proxies are core design features, not add ons.
Concrete example
Your browser sends `GET /` to a server and receives `200 OK` plus HTML. Later it requests images and scripts with more GET requests. Even though it feels like one session, each request is independent unless cookies or tokens tie them together.