shfshanyue / httpstatus

Home Page:https://http.devtool.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP STATUS

HTTP.DEVTOOL.TECH 可通过路径名称直接访问到对应的状态码。如:

本网站内容参考以下网站

工具推荐

代码示例

API

除了状态码,本站还提供了 API 用于 HTTP 测试。

Cookie

获取所有 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

About

https://http.devtool.tech


Languages

Language:MDX 86.8%Language:TypeScript 10.0%Language:CSS 1.6%Language:JavaScript 1.4%Language:Dockerfile 0.1%