HTTP headers reference हर backend, frontend और DevOps engineer के पास होनी चाहिए। Headers caching, CORS, authentication, security, content negotiation control करते हैं — HTTP में लगभग हर cross-cutting concern।
इस गाइड में actually use होने वाले headers grouped हैं, हर एक का काम और common values के साथ।
HTTP Headers Reference — Free
Searchable reference हर HTTP header के लिए।
Common Request Headers
| Header | Purpose |
|---|---|
| Authorization | Credentials (Bearer, Basic) |
| Accept | Content types client handles |
| Accept-Language | Preferred languages |
| Content-Type | Body format on POST/PUT |
| User-Agent | Client identification |
| Cookie | Session state |
| If-None-Match | Conditional GET (ETag) |
Common Response Headers
| Header | Purpose |
|---|---|
| Content-Type | Response body format |
| Cache-Control | Caching directives |
| ETag | Resource version |
| Set-Cookie | Cookie set करता है |
| Location | Redirect target (3xx) |
Security Headers (Essential)
| Header | Purpose |
|---|---|
| Content-Security-Policy | Allowed scripts whitelist |
| Strict-Transport-Security | Force HTTPS (HSTS) |
| X-Content-Type-Options | nosniff — MIME sniffing prevent |
| X-Frame-Options | Clickjacking protection |
| Referrer-Policy | Referer leak control |
CORS Headers
| Header | Purpose |
|---|---|
| Access-Control-Allow-Origin | Allowed origin |
| Access-Control-Allow-Methods | Permitted methods |
| Access-Control-Allow-Headers | Permitted custom headers |
| Access-Control-Allow-Credentials | Cross-origin cookies |
CORS errors? Server response पर इनमें से कोई missing है।
Caching Headers
Cache-Control directives:
public— Cacheable by any cache।private— Browser only।no-store— Never cache।no-cache— Cache but revalidate।max-age=N— N seconds cache।immutable— Never check (hash-based filenames)।
Hashed assets के लिए: Cache-Control: public, max-age=31536000, immutable
Authorization Header Formats
| Scheme | Format |
|---|---|
| Basic | Authorization: Basic base64(user:pass) |
| Bearer (JWT) | Authorization: Bearer eyJ... |
| API Key | X-API-Key: your-key |
How to Use the Tool (Step by Step)
- 1
Category Pick करें
Request, response, security, CORS।
- 2
Headers Browse करें
Purpose, valid values, examples।
- 3
Search करें
Specific header by name।
- 4
Examples Copy करें
Server config या fetch call में।
- 5
Validate करें
curl या DevTools से test।
Frequently Asked Questions
हर site पर कौन से security headers चाहिए?+−
CSP, HSTS, X-Content-Type-Options, X-Frame-Options, Referrer-Policy।
CORS error कैसे fix करूं?+−
Server response पर Access-Control-Allow-Origin add करें।
no-cache vs no-store?+−
no-store never caches। no-cache caches लेकिन always revalidates।
Browser में request headers देख सकते हैं?+−
हाँ — DevTools > Network tab > Headers section।
Static assets के लिए caching?+−
Filename hash करें और Cache-Control: public, max-age=31536000, immutable।
HTTP Headers Reference — Free
Searchable reference हर HTTP header के लिए।
HTTP Headers Reference खोलें ->Related Guides
JSON फॉर्मेटर गाइड
JSON क्या है, कैसे format करें, common errors कैसे fix करें — developers और beginners दोनों के लिए।
JWT डिकोडर गाइड
जानें JWT कैसे काम करता है, टोकन तुरंत डिकोड करें, और ऑथेंटिकेशन समस्याओं को डीबग करें — सब आपके ब्राउज़र में।