mirror of
https://github.com/tenrok/axios.git
synced 2026-05-15 11:59:42 +03:00
Refactored adapters loader; (#5277)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -497,3 +497,17 @@ axios.get('/user', {
|
||||
console.log(e.rate);
|
||||
}
|
||||
});
|
||||
|
||||
// adapters
|
||||
|
||||
axios.get('/user', {
|
||||
adapter: 'xhr'
|
||||
});
|
||||
|
||||
axios.get('/user', {
|
||||
adapter: 'http'
|
||||
});
|
||||
|
||||
axios.get('/user', {
|
||||
adapter: ['xhr', 'http']
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user