title | prev_title | prev_link | next_title | next_link |
---|---|---|---|---|
The Axios Instance |
Axios API |
/docs/api_intro |
Request Config |
/docs/req_config |
You can create a new instance of axios with a custom config.
const instance = axios.create({
baseURL: 'https://some-domain.com/api/',
timeout: 1000,
headers: {'X-Custom-Header': 'foobar'}
});
The available instance methods are listed below. The specified config will be merged with the instance config.