Request
ELI5 — The Vibe Check
A request is what your browser (or app) sends to a server when it wants something. 'Give me the homepage.' 'Give me that image.' 'Here's some form data, save it.' Every request has a method (like GET or POST), a URL, and optionally some data and headers.
Real Talk
An HTTP request is a message sent by a client to a server asking it to perform an action. It consists of: a request line (method + URL + HTTP version), headers (metadata), and optionally a body (for POST/PUT requests). The server processes it and returns a response.
Show Me The Code
// Fetch API request in JavaScript
const response = await fetch('https://api.example.com/users', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Alice', email: 'alice@example.com' })
});
const data = await response.json();
When You'll Hear This
"The request is timing out." / "Add authentication headers to every request."
Related Terms
Header
Headers are the metadata attached to HTTP requests and responses — information about the information.
HTTP (HyperText Transfer Protocol)
HTTP is the language your browser uses to ask websites for stuff. You type a URL, your browser shouts 'hey, give me that page!
Method
A method is just a function that belongs to an object or class. Your Dog object has a bark() method — it's the dog's personal function.
Response
A response is what the server sends back after receiving a request.
Status Code
An HTTP status code is the server's one-line verdict on your request. 200 means 'perfect, here's what you asked for.' 404 means 'can't find it.