Skip to main content
DevTools24

HTTP 头部解析器

解析和分析 HTTP 头部。通过分类和解释了解头部的用途。

Entity (2)

Content-Type
application/json; charset=utf-8
The media type of the body
Content-Length
1234
The size of the body in bytes

Caching (1)

Cache-Control
max-age=3600, public
Directives for caching mechanisms

Response (2)

X-Powered-By
Next.js
Technology powering the web application
Set-Cookie
session=abc123; Path=/; HttpOnly; Secure
Send cookies from the server to the client

Security (2)

Strict-Transport-Security
max-age=31536000; includeSubDomains
Force HTTPS connections (HSTS)
Content-Security-Policy
default-src 'self'
Controls resources the browser is allowed to load

HTTP 头部 - 技术详情

HTTP 头部携带关于请求和响应的元数据。它们控制缓存、认证、内容类型、安全策略等。理解头部对于 Web 开发和调试至关重要。

命令行替代方案

// Important headers\nContent-Type: application/json\nCache-Control: max-age=3600\nAuthorization: Bearer token\nStrict-Transport-Security: max-age=31536000