跳转到主要内容
kitlocal.dev

HTTP 请求构建器

本地运行

100% 在你的浏览器中处理。输入和输出绝不会离开你的设备。

可视化构建 HTTP 请求并生成 JavaScript Fetch 代码,无需 cURL。

请求标头
请求体数据 (Raw)
原生 Fetch() 代码封装
fetch("https://api.example.com/v1/auth/login", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123",
  },
  body: JSON.stringify({
    "username": "admin",
    "password": "supersecurepassword"
  }),
})
  .then((response) => response.json())
  .then((data) => console.log(data));