HTTP.DEVTOOL.TECH 可通过路径名称直接访问到对应的状态码。如:
- https://http.devtool.tech/200:关于 200 状态码的解释说明
- https://http.devtool.tech/201:关于 201 状态码的解释说明
- https://http.devtool.tech/404:关于 404 状态码的解释说明
本网站内容参考以下网站
- rmaake1/httpstatuses,间接来自于 RFC
- http.cat
- MDN
除了状态码,本站还提供了 API 用于 HTTP 测试。
获取所有 Cookie,配置 Cookie,并支持配置属性如 Domain、Path、SameSite、MaxAge 等。
# 获取 Cookies
$ curl https://http.devtool.tech/api/cookies
# 配置 Cookie 为 a: 3
$ curl https://http.devtool.tech/api/cookies/set/a/3
# 配置 Cookie 为 a: 3,且 httpOnly: true, secure: true, maxAge: 100, sameSite: Lax
$ curl https://http.devtool.tech/api/cookies/set/a/3?secure=true&httpOnly=true&maxAge=100&sameSite=Lax
配置服务器端的 Cache Control
以及 Age
属性,用以测试缓存。
目前部署在 Vercel 中,Age 会被 Proxy 所拦截。
# 配置 Cache-Control
$ curl https://http.devtool.tech/api/cache?cacheControl=no-store&age=1000
# 配置 Cache-Control: 100
$ curl https://http.devtool.tech/api/cache/100
# 配置 Cache-Control: 31536000
$ curl https://http.devtool.tech/api/cache/31536000