惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
V
V2EX
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
月光博客
月光博客
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
A beginner-friendly mental model of HTTP, HTTPS and how t...
Omaima Ameen · 2026-05-14 · via DEV Community

Hiee🥂!!
Lately I’ve been diving deep into web internals and honestly the deeper I go, the crazier it feels.

So I thought of documenting whatever I’m learning and understanding along the way , not as an expert, but as a curious developer trying to connect the dots.
This is one of those notes.

I know there’s already a lot of content on HTTP and web architecture out there, but I still wanted to write this because writing things in my own words helps me understand them better

Will probably keep writing more about web internals, React internals and low-level web stuff as I learn :)

(Note that Networking goes wayyy deeper than this ,this is just me trying to understand and explain the core ideas in simple human language while learning)

So here we goo,

Every time we open a website, click a button or log into an app, there’s a silent conversation happening between the client and the server.

HTTP is basically the medium that makes this conversation possible.

Its through which client and server talks to each other as a means of request , as the name suggests already that request means asking something from someone , and response again as the name suggests its giving an answer to someone’s call (in this case the request’s call)

So a request is basically asking something from the server , and the response is what the server gives us (client) in the form of whatever we intend to see on the internet.

I hope you get the idea right..don't you?

Now what exactly is HTTP?

It’s a protocol , basically a defined set of rules for how requests and responses should happen between the client and the server.
And a request message usually looks something like this:

Request Line
Headers
Optional Message Body

alright?

Now obviously every request to the server cannot mean the same thing :}

Sometimes you want to fetch data.
Sometimes you want to create something.
Sometimes, update it.
Sometimes delete it.
So for that, HTTP provides different methods to tell the server what action the client actually wants to perform.

Some common HTTP methods are:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE
  • HEAD
  • OPTIONS
  • TRACE
  • CONNECT

For me, the most fascinating (and honestly crazy) thing was knowing that HTTP is a stateless protocol.

Meaning?

You send a request.
The server processes it.
Give a response.
And then suddenly…

“Who are you again?

So in this case, you’d basically have to log in on every single page again and again because somehow the server has to remember the context of YOU, right? 😭

Like imagine opening Amazon.com, logging in, doing your shopping, ordering earpods, paying for them and everything is done,

then 2 hours later or maybe the next day , you open the app again and the website suddenly goes:

“Who are you babe?” 💀

Wouldn’t that be complete chaos?

There had to be something which could tell the server:
“ this is the same person, don’t you dare forget them ”

And that “noble job” is basically being done by Cookies and Session Storage.

Cookies: a small piece of text stored in the user’s device by the browser , which consists of name-value pairs containing bits of information about the user, so the web experience doesn’t reset every five seconds.

But remembering the user wasn’t the only challenge with HTTP
There was another problem too, speed and connection efficiency.

Pipelining, Multiplexing and the emergence of HTTPS

HTTP/1.0 was pretty straightforward:

One request.
One response.
Connection closed.

and then again,
new request = new connection setup every single time!!

which was obviously kinda slow and tiring.

So HTTP/1.1 introduced something called Pipelining.
Meaning?
The client could send multiple requests together without waiting for the previous response to arrive first.
Sounds cool, right?

but there was still a problem.

The server still had to return responses in order:
response 1 -> response 2 -> response 3 ...
So if request 1 became slow for some reason, the further requests had to wait too.

This problem was called HOL Blocking (Head Of Line Blocking).
and that’s where Multiplexing entered the chat !!

Multiplexing basically means sending and receiving multiple requests and responses simultaneously over the same connection.

Then came HTTP/2 which introduced proper multiplexing over a single connection along with header compression.

And later HTTP/3 came into the picture, running over UDP with faster connection setup and better performance during packet loss.

Then comes HTTPS (Secure HTTP).

Now obviously sending sensitive stuff like passwords, payment details and tokens in plain text over the internet would be a terrible idea💀

So HTTPS adds encryption to the communication between the client and the server.
Meaning?
Even if someone somehow intercepts the data in between, they still won’t be able to understand it.

Think of it like this

HTTP:
Client -> “my password is 12345” -> Network
HTTPS:
Client -> encrypted unreadable gibberish -> Network
Server -> decrypts -> “my password is 12345”

and behind the scenes, things like TLS and digital certificates help establish this secure communication channel.

That’s basically the core idea behind HTTPS.

the deeper I go into web internals, the crazier the internet starts feeling,

Like imagine billions of devices continuously talking to servers through requests, responses, protocols, encryption, cookies, packets and what not !!!

and somehow all of this works so smoothly that we casually open Instagram while eating chips :)

Just curious hat was the first web/internet concept that completely blew your mind?

(If I misunderstood something anywhere, I’d genuinely love corrections or deeper insights from y’all🙌)