HTTP Header
Pronunciationaitch-tee-tee-pee HED-er
Definition
Extra information sent with a request or response, such as the content type or the authorization token.
Where you hear it
API docs, authentication, caching, and CORS issues.
Examples
Send the token in the
Authorizationheader.Set
Content-Type: application/jsonor the server will not parse the body.The response includes a Cache-Control header that tells the browser how long to keep it.
Common mistake
Forgetting that headers can be read and changed by the client. Never rely on them alone for security.
Don't confuse with
HTTP header is often confused with HTTP body; the header contains metadata about the request or response, while the body contains the actual data being transmitted.
Say it at work
- In a meeting or chat
Can you check the network tab and see if the custom HTTP header is being sent correctly in the request?
- In an email or ticket
Please update the API documentation to specify which HTTP header is required for the authentication token.