HTTP 请求构建器
可视化构建 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));