M
Mahyar NasiriDeveloper

HTTP Headers Reference

Searchable reference for common HTTP request and response headers and what they do.

AcceptRequest

Specifies the media types the client can understand.

Accept-EncodingRequest

Content encodings the client can decompress (e.g. gzip, br).

Accept-LanguageRequest

Natural languages the client prefers for the response.

Accept-RangesResponse

Indicates whether the server supports byte-range requests.

Access-Control-Allow-OriginResponse

Tells browsers which origins may access the resource (CORS).

AgeResponse

Seconds the object has been cached by an intermediate proxy.

AllowResponse

Lists the HTTP methods a resource supports.

AuthorizationRequest

Carries credentials for HTTP authentication.

Cache-ControlGeneral

Directives that control caching behavior in requests and responses.

ConnectionGeneral

Controls whether the network connection stays open after the transaction.

Content-EncodingEntity

Encodings applied to the body, e.g. gzip, deflate.

Content-LanguageEntity

Natural language of the intended audience of the resource.

Content-LengthEntity

Size of the message body in bytes (octets).

Content-TypeEntity

Media type of the resource (e.g. application/json).

CookieRequest

Cookies previously set by the server, sent back by the client.

DateGeneral

Date and time the message was generated.

ETagResponse

Entity tag used for cache revalidation (If-None-Match).

ExpiresEntity

Date/time after which the response is considered stale.

HostRequest

Domain name and port of the requested resource — required in HTTP/1.1.

Last-ModifiedEntity

Date/time the resource was last modified.

LocationResponse

URL to redirect the client to (used with 3xx status).

OriginRequest

Origin of the request, used in CORS and POST requests.

RangeRequest

Requests a specific byte range of the resource.

RefererRequest

Address of the page that linked to the current resource.

Retry-AfterResponse

How long the client should wait before retrying (rate limits, 503).

ServerResponse

Information about the software used by the origin server.

Set-CookieResponse

Sends a cookie from the server to the client.

Transfer-EncodingGeneral

Transfer encoding applied to the message, e.g. chunked.

UpgradeGeneral

Protocols the client asks the server to switch to (e.g. WebSocket).

User-AgentRequest

Identifying information about the client software.

ViaGeneral

Proxies and gateways the message has passed through.

WWW-AuthenticateResponse

Challenges the client to authenticate (used with 401).

Informational reference — actual behavior can vary by browser and server implementation.