It is the medium by which our client talk to the server to send request and receive response. there is two ideas around the HTTP protocols

Screenshot 2026-08-03 at 12.12.28 PM.png

characteristic of the HTTP Protocols

client server model

HTTP follows client server model architecture where client initiates the request from the browser or maybe app (postman) and server receives that request process it and send back to the client.

Screenshot 2026-08-03 at 12.21.01 PM.png

stateless

every request is independent that it has no memory of the past interaction. all the request is new. so that mean you have to send these (auth token/cookies) or session information into every request.

each request contains all the necessary stuff that the server need to process and send back to the client.

evolution of the http

ChatGPT Image Aug 3, 2026, 12_30_08 PM.png

HTTP/0.9

only fetch html pages with only get req.

HTTP/1.0

added headers and status code. and the problem with that was opened a new req in each connection

HTTP/1.1

reused the connection with faster than the prev

HTTP/2

multiple req can travel at the same time on one connection

HTTP/3

switched TCP to QUIC and work faster and work on better on unstable network.

HTTP Request

Screenshot 2026-08-03 at 12.46.19 PM.png

HTTP Response

Screenshot 2026-08-03 at 12.51.02 PM.png

header

header is simple extra information (metadata) and being sent along with an request or response.

think like of this way you’re sending a package (body) the actual item that you’re sending but it also write the label (header) it’s about more info about the package and where it’s sending. like who sent? who will receives?

Screenshot 2026-08-03 at 12.57.46 PM.png