◍ Request Inspector

请求头全量

把这次请求的每一个 HTTP 头都摊开:原始名称、原始值、分组、体积,以及它和浏览器内部 fetch 请求的差异。

11 headers · Cloudflare
请求
GET /headers
请求头数量
11
头体积
≈ 384 字节
远端地址
216.73.217.131 (Cloudflare)

全部请求头

按 Node 收到的原始顺序展示,保留原始大小写;同名头(如多个 Cookie、多个 X-Forwarded-For)会各自成行。

HTTP/2+
#请求头值
1 accept */*
2 accept-encoding gzip, br
3 cf-connecting-ip 216.73.217.131
4 cf-ipcountry US
5 cf-ray a55f058d69edc424
6 cf-visitor {"scheme":"https"}
7 connection Keep-Alive
8 host hono-request-inspector.pages.dev
9 user-agent Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
10 x-forwarded-proto https
11 x-real-ip 216.73.217.131

导航请求 vs fetch 请求

同一个浏览器发起的两种请求,头集合并不相同 —— 这正是服务端“看到的”和页面里 JS “能知道”的差异来源。

正在发起一次 fetch 请求做对比…

JSON 视图

服务端原样返回的结构,便于接入其它程序或做断言。

展开 / 收起
{
  "method": "GET",
  "path": "/headers",
  "query": "",
  "httpVersion": "2+",
  "remote": "216.73.217.131 (Cloudflare)",
  "headerCount": 11,
  "headers": {
    "accept": "*/*",
    "accept-encoding": "gzip, br",
    "cf-connecting-ip": "216.73.217.131",
    "cf-ipcountry": "US",
    "cf-ray": "a55f058d69edc424",
    "cf-visitor": "{\"scheme\":\"https\"}",
    "connection": "Keep-Alive",
    "host": "hono-request-inspector.pages.dev",
    "user-agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
    "x-forwarded-proto": "https",
    "x-real-ip": "216.73.217.131"
  },
  "rawPairs": [
    [
      "accept",
      "*/*"
    ],
    [
      "accept-encoding",
      "gzip, br"
    ],
    [
      "cf-connecting-ip",
      "216.73.217.131"
    ],
    [
      "cf-ipcountry",
      "US"
    ],
    [
      "cf-ray",
      "a55f058d69edc424"
    ],
    [
      "cf-visitor",
      "{\"scheme\":\"https\"}"
    ],
    [
      "connection",
      "Keep-Alive"
    ],
    [
      "host",
      "hono-request-inspector.pages.dev"
    ],
    [
      "user-agent",
      "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
    ],
    [
      "x-forwarded-proto",
      "https"
    ],
    [
      "x-real-ip",
      "216.73.217.131"
    ]
  ]
}