HTTP Explained

You and I are neighbors.

But yelling across to each other meant things got lost in translation.

So we set up a bike messenger system to deliver messages between our houses. And on the bike we wrote “HTTP”.

Not: Highspeed Tricycles Tripling Purple, but rather: Hypertext Transfer Protocol.

Your house is a server, and the bike is the messenger I use to ask for information: data.

When the bike arrives at your door, your mom (her name is API) checks the note I sent.

The note says what I want:

“GET /toys” – “Show me what toys you have”
“POST /toys” – “I’m sending you a new toy”
“DELETE /toys/robot” – “Throw away the robot”

The bike, the HTTP method (GET, POST, DELETE) communicates what action I want.

She reads it, does the thing, and sends the bike back with a response.

That’s HTTP: a messenger protocol where the method is the action you’re requesting.

Leave a comment