在线工具集
正在加载,请稍候…
正在加载,请稍候…
粘贴 cURL 命令自动解析请求方法、URL、请求头与请求体,转换为 fetch、axios、Python requests 与 Node.js 代码。
const response = await fetch('https://api.example.com/v1/users', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token123',
},
body: '{"name":"张三","age":28}',
});
const data = await response.json();说明