HTTP 请求测试
HTTP 请求测试工具,生成 curl/fetch/axios 代码片段,可选真发请求(受 CORS 限制)
代码片段
cURL
curl -X GET 'https://api.example.com/users' \ -H 'Content-Type: application/json'
fetch
fetch('https://api.example.com/users', {
method: 'GET',
headers: {
"Content-Type": "application/json"
}
})axios
axios({
url: 'https://api.example.com/users',
method: 'get',
headers: {
"Content-Type": "application/json"
}
})