📜  axios 默认标题常见 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:11.437000             🧑  作者: Mango

代码示例2
// GET request for remote image
axios({
  method: 'get',
  url: 'http://bit.ly/2mTM3nY',
  responseType: 'stream'
})
  .then(function(response) {
  response.data.pipe(fs.createWriteStream('ada_lovelace.jpg'))
});