We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405fe69 commit d74238eCopy full SHA for d74238e
README.md
@@ -56,10 +56,15 @@ Performing a `GET` request
56
// Make a request for a user with a given ID
57
axios.get('/user?ID=12345')
58
.then(function (response) {
59
+ // handle success
60
console.log(response);
61
})
62
.catch(function (error) {
63
+ // handle error
64
console.log(error);
65
+ })
66
+ .then(function () {
67
+ // always executed
68
});
69
70
// Optionally the request above could also be done as
@@ -73,7 +78,10 @@ axios.get('/user', {
73
78
74
79
75
80
76
- });
81
82
83
84
+ });
77
85
86
// Want to use async/await? Add the `async` keyword to your outer function/method.
87
async function getUser() {
0 commit comments