2
0
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:
Dmitriy Mozgovoy
2022-11-22 20:53:56 +02:00
committed by GitHub
parent a3d901777b
commit d032edda08
9 changed files with 89 additions and 59 deletions
+14
View File
@@ -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']
});