📅  最后修改于: 2022-03-11 15:04:14.896000             🧑  作者: Mango
// Send a GET request with the authorization header set to
// the string 'my secret token'
const res = await axios.get('https://httpbin.org/get', {
headers: {
'Authorization': 'my secret token'
}
});