Based on the MDN Web Docs page on HTTP Headers, here is the definition with proper citation:
Definition of HTTP Headers
HTTP headers are components of HTTP requests and responses that allow clients and servers to pass additional context and metadata alongside the core message. They consist of case-insensitive name-value pairs separated by a colon (:), and are used to control protocol behavior, implement features like caching and authentication, negotiate content formats, manage cookies, and enhance security policies (Mozilla, "HTTP Headers," MDN Web Docs).
Key Characteristics:
-
Structure:
<header-name>: <header-value> (e.g., Content-Type: text/html).
-
Purpose:
- Define operating parameters of HTTP transactions.
- Handle cookies (
Cookie, Set-Cookie).
- Enforce security policies (e.g.,
Content-Security-Policy).
- Control caching (
Cache-Control, ETag).
- Negotiate content/encoding (
Accept, Accept-Encoding).
-
Categories:
- Request Headers: Sent by clients (e.g.,
User-Agent, Authorization).
- Response Headers: Sent by servers (e.g.,
Server, WWW-Authenticate).
- Representation Headers: Describe resource data (e.g.,
Content-Type).
- Payload Headers: Describe HTTP message body (e.g.,
Content-Length).
"HTTP headers let the client and the server pass additional information with an HTTP request or response." (Mozilla, "HTTP Headers," MDN Web Docs)
In-Text Citation Format
When referencing this definition in academic or technical writing, use:
(Mozilla, n.d.)
or
(Mozilla, "HTTP Headers," MDN Web Docs, n.d.)
Full Reference (APA Style)
Mozilla. (n.d.). HTTP headers. MDN Web Docs. Retrieved from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers