Copy and Paste into Chrome Dev Tool
fetch("https://go-http-combiner.herokuapp.com",{
method: "POST",
body:JSON.stringify({
"baidu.com": {
method: "GET",
url: "https://www.baidu.com"
},
"cn.bing.com": {
method: "GET",
url: "https://cn.bing.com"
},
"sina.com": {
method: "GET",
url: "http://sina.com"
}
})
})
.then(res=>res.json())
.then(function(res){
console.log(res);
})
fetch("https://go-http-combiner.herokuapp.com", {
method: "POST",
body: JSON.stringify([
{
method: "GET",
url: "https://www.baidu.com"
},
{
method: "GET",
url: "https://cn.bing.com"
},
{
method: "GET",
url: "http://sina.com"
}
])
})
.then(res => res.json())
.then(function(res) {
console.log(res);
});
Axetroy ๐ป ๐ ๐จ |
---|