最終更新:2018-04-16 (月) 11:13:42 (125d)  

axios はてなブックマークを見る
Top / axios

Promise based HTTP client for the browser and node.js

https://github.com/axios/axios

メソッド

Config Defaults

  • axios.defaults?
    • axios.defaults.baseURL? = 'https://api.example.com';
    • axios.defaults.headers.common?['Authorization'] = AUTH_TOKEN;
    • axios.defaults.headers.post?['Content-Type'] = 'application/x-www-form-urlencoded';
    • axios.defaults.auth?